n=int(input()) a=list(map(int,input().split())) b=[0] for i in a: x=i for j in b: if x^j