#桁の数字を入れ替え(2) N = list(input()) N.sort() N.reverse() print("".join(N))