import sys input = sys.stdin.readline N,M=map(int,input().split()) S=[int(input().strip(),2) for i in range(M)] SET=set(S) if 0 in S and ((1<