N=int(input()) A=list(map(int,input().split())) Max=2**14+1 dp=[False]*Max dp[0]=True for i in range(N): for j in range(Max): if j^A[i]