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