# -*- coding: utf-8 -*- N = input() A = list(str(N)) A.sort() A.reverse() print "".join(A)