a = input()
b = input()
c = []
for i in a.split():
    c.append(i)
c.remove(b)
print(c)