N, M = map(int, input().split()) S = [int(input(), 2) for _ in range(M)] bit = (1<>i & 1) == 0 for i in range(N)): print("Yes") else: print("No")