str1 = input()
str2 = input()
list1 = str1.split(' ')
list1.remove(str2)
print(list1)