from os import remove
a=input().split( )
b=input()
a.remove(b)
print(a)