print(''.join(list(map(str, sorted(map(int, [*input()]), reverse=True)))))