import numpy as np import sys def solve(): n = int(sys.stdin.readline()) m = int(sys.stdin.readline()) mat = np.array([np.array(list(sys.stdin.readline())[:-1]) for _ in [0] * m]).astype(bool) for i in range(n): a = np.prod(np.array([v for v in mat if(v[i])]), axis = 0).astype(bool) b = np.sum(np.array([v for v in mat if not(v[i]) ]), axis = 0).astype(bool) c = a & ~b c[i] = False if c.any(): print("No") exit(0) print("Yes") solve()