s = input() rec = [0] * 10 for i in s: rec[int(i)] += 1 t = "" for i in range(9, -1, -1): t += str(i) * rec[i] print(t)