from itertools import combinations N=int(input()) S=[] for _ in range(N): S.append(list(map(int,input().split()))) DP=[[0]*N for _ in range(1<>a)&1: X.append(a) else: Y.append(a) for B in combinations(Y,popcount[A]): T=0 for b in B: T|=1<