#include <bits/stdc++.h>
using namespace std;
int n, k, vis[20];
int main() {
  scanf("%d%d", &n, &k);
  for (int i = 1; i <= n; ++i) {
    int tmp = 0;
    for (int j = 1; j <= k; ++j) {
      int x;
      scanf("%d", &x);
      tmp += x << (k - j);
    }
    vis[tmp] = 1;
  }
  int flag = 0;
  for (int i = 0; i < (1 << k); ++i)
    for (int j = 0, x; j < (1 << k); ++j)
      if (vis[i] && vis[j] && !(i & j)) flag = 1;
  puts(flag ? "YES" : "NO");
  return 0;
}
