a_list = list(input().split())
a_list.remove(input())
print(a_list)