N = input() l = list(N) ans = "" l.sort() l.reverse() for li in l: ans += li print(ans)