n="\n" o="a\n" a=97 for c in raw_input():a+=1;d=chr(a);o=[o+d*o.find(n)+n,o.replace(n,d+n)][c<"v"] print o
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page