while 1: a=raw_input() if list(a)==sorted(a):print a