import sys input = sys.stdin.readline def calc(x,op,y): if op=="and": return x & y if op =="or": return x|y if op =="xor": return x^y if op=="imp": return (x^1)|y def update(v,w): # index vにwを加える while v<=LEN: BIT[v]+=w v+=(v&(-v)) # v&(-v)で、最も下の立っているビット. 自分を含む大きなノードへ. たとえばv=3→v=4 def getvalue(v): # [1,v]の区間の和を求める ANS=0 while v!=0: ANS+=BIT[v] v-=(v&(-v)) # 自分より小さい自分の和を構成するノードへ. たとえばv=14→v=12へ return ANS T=int(input()) for tests in range(T): N=int(input()) X=input().split() Y=input().split() S=list(map(int,input().split())) for i in range(N): if X[i]=="True": X[i]=1 else: X[i]=0 LIST=[] for i in range(N): LIST.append(X[i]) if i