n,k=int(input()),int(input()) nn=[] for _ in range (n): j=int(input()) for c,v in enumerate(nn): if j