n=int(input()) num="" n_list=list(n) n_list.sort() num+=str(n_list[::-1]) if n