long long a[65],x,y,i;main(n){scanf("%d",&n);while(n--&&scanf("%lld",&x))for(i=0;x;i++)if(x>>i&1)!a[i]&&++y?a[i]=x,x=0:(x^=a[i]);!printf("%lld",1ll<