#CODING QUESTIONS:5
a=str(input())
b=set()
for x in a:
    if x not in b:
        b.add(x)
        print(x,end="")

fc0f3b4d6cb96a5a6a217b7cb13e28b8fcb85277
<mask token>

<mask token>
for x in a:
    if x not in b:
        b.add(x)
        print(x, end='')

a = str(input())
b = set()
for x in a:
    if x not in b:
        b.add(x)
        print(x, end='')

#CODING QUESTIONS:5
a=str(input())
b=set()
for x in a:
    if x not in b:
        b.add(x)
        print(x,end="")
