name_list = input().split()
del_name = input()
name_list.remove(del_name)
print(name_list)

@Python

#python#