while 1: a=list(input()) s=[] while a: c='' for i in a: if i not in c:c+=i for i in c:a.remove(i) s+=[c] print('/'.join(s))
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page