num = input()
res = ''
n = len(num)
for i in range(n-1,-1,-1):
    if num[i] not in res:
        res = res+num[i]
print(res)