a,b,c = map(int,list(input())) ma = max([a,b,c]) mc = min((a,b,c)) mb = a+b+c - (ma+mc) print(ma*100+mb*10+mc)