import sys input = sys.stdin.readline N=int(input()) M=int(input()) S=[int(input().strip(),2) for i in range(M)] for i in range(N): X1=(1<