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