#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:1024000000,1024000000")
using namespace std;
const double eps = 1e-4;
const int mod = 1e9 + 7;
const long long INF = 0x3f3f3f3f3f3f3f3f;
const int inf = 0x3f3f3f3f;
const int maxn = 1e3 + 7;
const int maxm = 1e6 + 7;
const double pi = acos(-1.0);
int n, k;
bool vis[maxn];
int main() {
  memset(vis, false, sizeof vis);
  scanf("%d%d", &n, &k);
  bool flag = false;
  for (int i = 1; i <= n; i++) {
    int state = 0;
    for (int j = 0; j < k; j++) {
      int tmp;
      scanf("%d", &tmp);
      if (tmp) state |= (1 << j);
    }
    vis[state] = true;
    for (int i = 0; i < (1 << k); i++) {
      if (state & i) continue;
      if (vis[i]) flag = true;
    }
  }
  if (flag)
    puts("YES");
  else
    puts("NO");
}
