while 1:\x0d s=raw_input()\x0d if s==s[0]:print s\x0d else:print s[len(s)-1]+s[1:-1]+s[0]
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page