while 1: s=a=['/']*9 for c in raw_input():a[s.count(c)]+=c;s=''.join(a) 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