#coding:utf-8

N=map(int,list(raw_input()))

ans=sorted(N,reverse=True)

print ''.join(map(str,ans))