x = input().split()
y = input()
x.remove(y)#删除x中的y
print(x)