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