import sys input = sys.stdin.readline N=int(input()) A=[list(map(int,input().split())) for i in range(N)] LIST=[[0]*N for i in range(32)] for i in range(N): for j in range(32): sc=0 for k in range(5): if j & (1<