a = [x for x in input()] a.reverse() list1 = [] for i in a: if i not in list1: list1.append(i) print(''.join(list1))