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