#include <bits/stdc++.h>
using namespace std;
int vis[1 << 4], a[40];
int main() {
  int n, k, m, cnt = 0;
  scanf("%d%d", &n, &k);
  for (int i = 0; i < n; ++i) {
    int num = 0;
    for (int j = 0; j < k; ++j) {
      scanf("%d", &m);
      num = num << 1 | m;
    }
    if (!num) return 0 * puts("YES");
    if (++vis[num] == 1) a[cnt++] = num;
  }
  for (int i = 0; i < cnt; ++i)
    for (int j = i + 1; j < cnt; ++j)
      if ((a[i] & a[j]) == 0) return 0 * puts("YES");
  puts("NO");
  return 0;
}
