a=list(map(int,input())) a.reverse() b=[] for i in a: if i not in b: b.append(i) for j in b: print(j,end='')