while 1: \x09a=raw_input()*2;i=0;s="" \x09while i<52:s+=a[i];i=a.find(a[i],i+1)%52+1 \x09print s
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page