aaa = raw_input() bbb = [] for i in range(len(aaa)): bbb.append(int(aaa[i])) bbb.sort(reverse=True) ans = "" for i in range(len(bbb)): ans = ans + str(bbb[i]) print ans