while True:
try:
op = []
number = int(input())
while number!=0:
num = number%10
number = number//10
op.append(num)
new_op = []
for k in op:
if k in new_op:
pass
else:
new_op.append(k)
opnum = 0
for k in new_op:
opnum = k+opnum*10
print(opnum)
except:
break