def main(): N = list(input()) sorted_N = sorted(N, reverse=True) for d in sorted_N: print(d, end='') print() if __name__ == '__main__': main()