s=raw_input();c=s[0];f=filter;print f(c.__gt__,s)+f(c.__eq__,s)+f(c.__lt__,s)