n = input() lst = [0 for _ in range(10)] for num in n: lst[int(num)] += 1 ans = "" for i, num in enumerate(lst): ans += str(i) * num print(int(ans[::-1]))