https://www.acmicpc.net/problem/1427
n=int(input()) k=str(n) m=len(k) arr=[0]*m for i in range(m): arr[i]=n%10; n//=10 arr.sort(reverse=True) for i in range(m): print(arr[i],end='')