def check(i): p = 1<>= 1 if np == M: return True p = np return False import sys input = sys.stdin.readline v,d = map(int,input().split()) e = [int(input()[::-1],2) for _ in range(v)] M = (1<