s = input()
a = ''
for i in s[::-1]:
    if i not in a:
        a += i
print(a)