l1 = list(input()) l1 = reversed(l1) l2 = [] for item in l1: if item not in l2: l2.append(item) for item in l2: print(item,end='') print()