while True:
    try:
        a=input()
        lista=[]
    except:
        break
    for i in a:
        if i not in lista:
            lista.append(i)
    print (''.join(lista))