N = raw_input() numbers = [0] * 10 for n in N: numbers[int(n)] += 1 ans = "" for m in range(10)[::-1]: ans += str(m) * numbers[m] print ans