N = list(input()) N.sort(reverse=True) [print(N[i], end="") for i in range(len(N))]