#桁の数字を入れ替え(2) N = list(map(int , list(input()))) N.sort() N.reverse() ans = "" for i in N: ans += str(i) print(ans)