N,M = map(int,input().split()) a = [list(map(int,input().split())) for _ in range(M)] now = [0] * N import sys for i in range(M): for j in range(N): now[j] += a[i][j] s = set() S = 0 s.add(0) for n in now: S += n if S - 777 in s: print('YES') exit() s.add(S) print('NO')