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