N=int(input()) A=list(map(int,input().split())) r=0 while A: r+=1 a=max(A) m=1<<(len(bin(a))-3) A=[b^a if b&m else b for b in A if b^a] print(1<