while 1: a=['']*99 for x in input(): b=0 while x in a[b]:b+=1 a[b]+=x print('/'.join(a).strip('/'))