n = int(input()) n_list = list(str(n)) sorted_n_list = sorted(n_list, reverse=True) res = ''.join(sorted_n_list) print(res)