Python
import sys
temp = sys.stdin.readline().rstrip()
array = []
for i in temp:
array.append(int(i))
array.sort(reverse=True)
for i in array:
print(i, end="")
Python
import sys
temp = sys.stdin.readline().rstrip()
array = []
for i in temp:
array.append(int(i))
array.sort(reverse=True)
for i in array:
print(i, end="")