while 1:s=raw_input();exec"print s"*(list(s)==sorted(s))