import sys, math sys.setrecursionlimit(10**8) sys.set_int_max_str_digits(0) N = list(input()) N.sort(reverse=True) print(''.join(N))