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