while 1: s=raw_input();a=[] while s: \x09a+='','' \x09for c in s:a[(c in a[-2])-2]+=c \x09s=a.pop() print'/'.join(a)
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page