while 1: a=['']*99 for x in input(): b=0 while x in a[b]:b+=1 a[b]+=x print('/'.join(a).strip('/'))
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page