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