print("".join(map(str, reversed(sorted([int(x) for x in input()])))))