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