long p,a[62];i,s=61;main(){for(gets(&p);~scanf("%ld",&p)&&s;)for(i=0;p>>i++&1?!a[i]?a[i]=p,s--,0:(p^=a[i]):i<62;);i=!printf("%ld",1L<<61-s);} //早くなる?