s=a='' for b in raw_input():b,a=sorted([a,b]);s+=b print s+a