# グラフの連結成分解法 from collections import deque #================================================== T=int(input()) N,C=map(int,input().split()) Power=[1<>i)&1: B|=Power[t[i]] if Seen[B]==0: Seen[B]=1 Q.append(B) # τ C=0 for i in range(2*N): if (A>>i)&1: C|=Power[u[i]] if Seen[C]==0: Seen[C]=1 Q.append(C) print(X)