Buggy python submission (verdict: Time Limit Exceeded):
from numpy import*
a,b=loadtxt(open(0),'i',skiprows=1)
c=0
l=1<<29
while l:u=l;l>>=1;c+=sum(diff(searchsorted(sort(r_[b%u-u,b%u]),([u],[l])-a%u).T))%2*l
print(c)

Fixed submission:
from numpy import*;B,I=searchsorted,lambda:int32(input().split());input();a,b=I(),I();c=0
for k in range(29):l=2**k;h=l*2;x,y=a%h,sort(b%h);y=hstack((y-h,y));c+=sum(B(y,h-x)-B(y,l-x))%2*l
print(c)

Buggy python submission (verdict: Time Limit Exceeded):
from numpy import*
a,b=loadtxt(open(0),'i',skiprows=1)
c=0
l=1<<29
while l:u=l;l>>=1;c+=sum(diff(searchsorted(sort(r_[b%u-u,b%u]),([u],[l])-a%u).T))%2*l
print(c)

Fixed submission:
from numpy import*;B,I=searchsorted,lambda:int32(input().split());input();a,b=I(),I();c=0
for k in range(29):l=2**k;h=l*2;x,y=a%h,sort(b%h);y=hstack((y-h,y));c+=sum(B(y,h-x)-B(y,l-x))%2*l
print(c)

Buggy python submission (verdict: Time Limit Exceeded):
from numpy import*
a,b=loadtxt(open(0),'i',skiprows=1)
c=0
l=1<<29
while l:u=l;l>>=1;c+=sum(diff(searchsorted(sort(r_[b%u-u,b%u]),([u],[l])-a%u).T))%2*l
print(c)

Fixed submission:
from numpy import*;B,I=searchsorted,lambda:int32(input().split());input();a,b=I(),I();c=0
for k in range(29):l=2**k;h=l*2;x,y=a%h,sort(b%h);y=hstack((y-h,y));c+=sum(B(y,h-x)-B(y,l-x))%2*l
print(c)

Buggy python submission (verdict: Time Limit Exceeded):
from numpy import*
B=searchsorted
a,b=loadtxt(open(0),skiprows=1)
c=0
l=2**29
while l:y=sort(hstack((b%l-l,b%l)));A=l-a%l;l//=2;c+=sum(B(y,A)-B(y,A-l))%2*l
print(c)

Fixed submission:
from numpy import*;B,I=searchsorted,lambda:int32(input().split());input();a,b=I(),I();c=0
for k in range(29):l=2**k;h=l*2;x,y=a%h,sort(b%h);y=hstack((y-h,y));c+=sum(B(y,h-x)-B(y,l-x))%2*l
print(c)

Buggy python submission (verdict: Time Limit Exceeded):
from numpy import*
B=searchsorted
a,b=loadtxt(open(0),skiprows=1)
c=0
l=1<<29
while l:y=sort(hstack((b%l-l,b%l)));A=l-a%l;l>>=1;c+=sum(B(y,A)-B(y,A-l))%2*l
print(c)

Fixed submission:
from numpy import*;B,I=searchsorted,lambda:int32(input().split());input();a,b=I(),I();c=0
for k in range(29):l=2**k;h=l*2;x,y=a%h,sort(b%h);y=hstack((y-h,y));c+=sum(B(y,h-x)-B(y,l-x))%2*l
print(c)

Buggy python submission (verdict: Time Limit Exceeded):
from numpy import*
B=searchsorted
a,b=loadtxt(open(0),skiprows=1)
c=0
l=2**29
while l:y=sort(hstack((b%l-l,b%l)));A=l-a%l;l//=2;c+=sum(B(y,A)-B(y,A-l))%2*l
print(c)

Fixed submission:
from numpy import*;B,I=searchsorted,lambda:int32(input().split());input();a,b=I(),I();c=0
for k in range(29):l=2**k;h=l*2;x,y=a%h,sort(b%h);y=hstack((y-h,y));c+=sum(B(y,h-x)-B(y,l-x))%2*l
print(c)

Buggy python submission (verdict: Time Limit Exceeded):
from numpy import*
B=searchsorted
a,b=loadtxt(open(0),skiprows=1)
c=0
l=2**29
while l:y=sort(hstack((b%l-l,b%l)));A=l-a%l;l//=2;c+=sum(B(y,A)-B(y,A-l))%2*l
print(c)

Fixed submission:
from numpy import*;B,I=searchsorted,lambda:int32(input().split());input();a,b=I(),I();c=0
for k in range(29):l=2**k;h=l*2;x,y=a%h,sort(b%h);y=hstack((y-h,y));c+=sum(B(y,h-x)-B(y,l-x))%2*l
print(c)

Buggy python submission (verdict: Time Limit Exceeded):
from numpy import*
B=searchsorted
a,b=loadtxt(open(0),skiprows=1)
c=0
l=2**29
while l:y=sort(hstack((b%l-l,b%l)));A=l-a%l;l//=2;c+=sum(B(y,A)-B(y,A-l))%2*l
print(c)

Fixed submission:
from numpy import*;B,I=searchsorted,lambda:int32(input().split());input();a,b=I(),I();c=0
for k in range(29):l=2**k;h=l*2;x,y=a%h,sort(b%h);y=hstack((y-h,y));c+=sum(B(y,h-x)-B(y,l-x))%2*l
print(c)

Buggy python submission (verdict: Time Limit Exceeded):
from numpy import*
B=searchsorted
a,b=loadtxt(open(0),skiprows=1)
c=0
l=2**29
while l:y=sort(hstack((b%l-l,b%l)));A=l-a%l;l//=2;c+=sum(B(y,A)-B(y,A-l))%2*l
print(c)

Fixed submission:
from numpy import*;B,I=searchsorted,lambda:int32(input().split());input();a,b=I(),I();c=0
for k in range(29):l=2**k;h=l*2;x,y=a%h,sort(b%h);y=hstack((y-h,y));c+=sum(B(y,h-x)-B(y,l-x))%2*l
print(c)

Buggy python submission (verdict: Time Limit Exceeded):
from numpy import*
a,b=loadtxt(open(0),skiprows=1)
c=0
l=1<<29
while l:u=l;l>>=1;c+=sum(diff(searchsorted(sort(hstack((b%u-u,b%u))),([u],[l])-a%u).T))%2*l
print(c)

Fixed submission:
from numpy import*;B,I=searchsorted,lambda:int32(input().split());input();a,b=I(),I();c=0
for k in range(29):l=2**k;h=l*2;x,y=a%h,sort(b%h);y=hstack((y-h,y));c+=sum(B(y,h-x)-B(y,l-x))%2*l
print(c)

Buggy python submission (verdict: Time Limit Exceeded):
from numpy import*;B=searchsorted;a,b=loadtxt(open(0),skiprows=1);c=0;l=2**29
while l:h=l;l//=2;y=sort(hstack((b%h-h,b%h)));c+=sum(B(y,h-a%h)-B(y,l-a%h))%2*l
print(c)

Fixed submission:
from numpy import*;B,I=searchsorted,lambda:int32(input().split());input();a,b=I(),I();c=0
for k in range(29):l=2**k;h=l*2;x,y=a%h,sort(b%h);y=hstack((y-h,y));c+=sum(B(y,h-x)-B(y,l-x))%2*l
print(c)

Buggy python submission (verdict: Time Limit Exceeded):
from numpy import*;B=searchsorted;a,b=loadtxt(open(0),'i',skiprows=1);c=0;l=2**29
while l:h=l;l//=2;y=sort(ravel((b%h-h,b%h)));c+=sum(B(y,h-a%h)-B(y,l-a%h))%2*l
print(c)

Fixed submission:
from numpy import*;B,I=searchsorted,lambda:int32(input().split());input();a,b=I(),I();c=0
for k in range(29):l=2**k;h=l*2;x,y=a%h,sort(b%h);y=hstack((y-h,y));c+=sum(B(y,h-x)-B(y,l-x))%2*l
print(c)

Buggy python submission (verdict: Time Limit Exceeded):
from numpy import*;a,b=loadtxt(open(0),'i',skiprows=1);c=0;l=2**29
while l:h=l;l//=2;a%=h;i,j=searchsorted(sort(hstack((b%h-h,b%h))),(l-a,h-a));c+=sum(j-i)%2*l
print(c)

Fixed submission:
from numpy import*;B,I=searchsorted,lambda:int32(input().split());input();a,b=I(),I();c=0
for k in range(29):l=2**k;h=l*2;x,y=a%h,sort(b%h);y=hstack((y-h,y));c+=sum(B(y,h-x)-B(y,l-x))%2*l
print(c)

Buggy python submission (verdict: Time Limit Exceeded):
from numpy import*;a,b=loadtxt(open(0),'i',skiprows=1);c=0;l=2**29
while l:h=l;l//=2;i,j=searchsorted(sort(hstack((b%h-h,b%h))),(l-a%h,h-a%h));c+=sum(j-i)%2*l
print(c)

Fixed submission:
from numpy import*;B,I=searchsorted,lambda:int32(input().split());input();a,b=I(),I();c=0
for k in range(29):l=2**k;h=l*2;x,y=a%h,sort(b%h);y=hstack((y-h,y));c+=sum(B(y,h-x)-B(y,l-x))%2*l
print(c)

Buggy python submission (verdict: Time Limit Exceeded):
from numpy import*;a,b=loadtxt(open(0),'i',skiprows=1);c=0;l=2**29
while l:h=l;l//=2;i,j=searchsorted(sort(hstack((b%h-h,b%h))),[l-a%h,h-a%h]);c+=sum(j-i)%2*l
print(c)

Fixed submission:
from numpy import*;B,I=searchsorted,lambda:int32(input().split());input();a,b=I(),I();c=0
for k in range(29):l=2**k;h=l*2;x,y=a%h,sort(b%h);y=hstack((y-h,y));c+=sum(B(y,h-x)-B(y,l-x))%2*l
print(c)

Buggy python submission (verdict: Time Limit Exceeded):
from numpy import*;a,b=loadtxt(open(0),skiprows=1);c=0;l=2**29
while l:h=l;l//=2;i,j=searchsorted(sort(hstack((b%h-h,b%h))),[l-a%h,h-a%h]);c+=sum(j-i)%2*l
print(c)

Fixed submission:
from numpy import*;B,I=searchsorted,lambda:int32(input().split());input();a,b=I(),I();c=0
for k in range(29):l=2**k;h=l*2;x,y=a%h,sort(b%h);y=hstack((y-h,y));c+=sum(B(y,h-x)-B(y,l-x))%2*l
print(c)

Buggy python submission (verdict: Time Limit Exceeded):
from numpy import*;B=searchsorted;a,b=loadtxt(open(0),skiprows=1);c=0;l=2**29
while l>1:h=l;l//=2;b%=h;a%=h;y=sort(hstack((b-h,b)));c+=sum(B(y,h-a)-B(y,l-a))%2*l
print(c)

Fixed submission:
from numpy import*;B,I=searchsorted,lambda:int32(input().split());input();a,b=I(),I();c=0
for k in range(29):l=2**k;h=l*2;x,y=a%h,sort(b%h);y=hstack((y-h,y));c+=sum(B(y,h-x)-B(y,l-x))%2*l
print(c)

Buggy python submission (verdict: Time Limit Exceeded):
from numpy import*;B=searchsorted;a,b=loadtxt(open(0),skiprows=1);c=0;h=1
while h<2**29:l=h;h*=2;y=sort(hstack((b%h-h,b%h)));c+=sum(B(y,h-a%h)-B(y,l-a%h))%2*l
print(c)

Fixed submission:
from numpy import*;B,I=searchsorted,lambda:int32(input().split());input();a,b=I(),I();c=0
for k in range(29):l=2**k;h=l*2;x,y=a%h,sort(b%h);y=hstack((y-h,y));c+=sum(B(y,h-x)-B(y,l-x))%2*l
print(c)

Buggy python submission (verdict: Time Limit Exceeded):
from numpy import*;B=searchsorted;a,b=loadtxt(open(0),skiprows=1);c=0;l=2**29
while l:h=l;l//=2;b%=h;a%=h;y=sort(hstack((b-h,b)));c+=sum(B(y,h-a)-B(y,l-a))%2*l
print(c)

Fixed submission:
from numpy import*;B,I=searchsorted,lambda:int32(input().split());input();a,b=I(),I();c=0
for k in range(29):l=2**k;h=l*2;x,y=a%h,sort(b%h);y=hstack((y-h,y));c+=sum(B(y,h-x)-B(y,l-x))%2*l
print(c)

Buggy python submission (verdict: Time Limit Exceeded):
from numpy import*;B=searchsorted;a,b=loadtxt(open(0),skiprows=1);c=0;l=2**29
while l:h=l;l//=2;b%=h;a%=h;y=sort(hstack((b-h,b)));c+=sum(B(y,h-a)-B(y,l-a))%2*l
print(c)

Fixed submission:
from numpy import*;B,I=searchsorted,lambda:int32(input().split());input();a,b=I(),I();c=0
for k in range(29):l=2**k;h=l*2;x,y=a%h,sort(b%h);y=hstack((y-h,y));c+=sum(B(y,h-x)-B(y,l-x))%2*l
print(c)

Buggy python submission (verdict: Time Limit Exceeded):
from numpy import*;B=searchsorted;a,b=loadtxt(open(0),skiprows=1);c=0;l=2**29
while l:h=l;l//=2;b%=h;y=sort(hstack((b-h,b)));c+=sum(B(y,h-a%h)-B(y,l-a%h))%2*l
print(c)

Fixed submission:
from numpy import*;B,I=searchsorted,lambda:int32(input().split());input();a,b=I(),I();c=0
for k in range(29):l=2**k;h=l*2;x,y=a%h,sort(b%h);y=hstack((y-h,y));c+=sum(B(y,h-x)-B(y,l-x))%2*l
print(c)

Buggy python submission (verdict: Time Limit Exceeded):
from numpy import*;B=searchsorted;a,b=loadtxt(open(0),skiprows=1);c=0;l=2**29
while l:h=l;l//=2;y=sort(hstack((b%h-h,b%h)));c+=sum(B(y,h-a%h)-B(y,l-a%h))%2*l
print(c)

Fixed submission:
from numpy import*;B,I=searchsorted,lambda:int32(input().split());input();a,b=I(),I();c=0
for k in range(29):l=2**k;h=l*2;x,y=a%h,sort(b%h);y=hstack((y-h,y));c+=sum(B(y,h-x)-B(y,l-x))%2*l
print(c)