import sys input = sys.stdin.readline def solve(): n = int(input()) m = int(input()) lis = [int(input().rstrip(), 2) for _ in [0] * m] MAX_INT = (1 << n) - 1 for i in range(n): a = MAX_INT b = 1 << i for k in lis: if((k >> i) & 1): a &= k else: b |= k if(a & ~b): print("No") exit(0) print("Yes") solve()