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