s = input() li = list(s[::-1]) li0 = [] for i in li: if i not in li0: li0.append(i) print(''.join(li0))