#37927: python紀錄


BensonDC (python戰士)


n=int(input())
r=0
for _ in range(n-1):
    r^=int(input())
print(r)