while 1: s=l=['']*9 for c in raw_input():l[s.count(c)]+=c;s="/".join(l) print s.strip('/')