S = raw_input() lst = [] for i in range(0, len(S)): lst.append(int(S[i])) lst.sort(reverse=True) ans = '' for i in range(0, len(S)): ans = ans + str(S[i]) print ans