N=raw_input() M=sorted(N) M.reverse() print ''.join(M)