import sys read=sys.stdin.buffer.read readline=sys.stdin.buffer.readline readlines=sys.stdin.buffer.readlines n=int(readline()) d=list(map(int, readline().split())) w=list(map(int, readline().split())) def Gauss_Jordan(v): basis=[] for x in v: y=x for b in basis: if (y^b)