while 1: a=list(input()) s=[] while a: c='' for i in a: if i not in c:c+=i for i in c:a.remove(i) s+=[c] print('/'.join(s))