#include <bits/stdc++.h>
using namespace std;
const int maxn = 2e5 + 7;
int vis[(1 << 4) + 3];
int main() {
  int n, m;
  cin >> n >> m;
  for (int i = 1; i <= n; i++) {
    int cnt = 0;
    for (int j = 1; j <= m; j++) {
      int x;
      cin >> x;
      cnt += (1 << (j - 1)) * x;
    }
    vis[cnt] = 1;
  }
  int flag = 0;
  for (int i = 0; i <= 16; i++) {
    for (int j = 0; j <= 16; j++) {
      if (vis[i] && vis[j]) {
        int len = i & j;
        if ((i & j) == 0) {
          flag = 1;
          break;
        }
      }
    }
    if (flag) break;
  }
  if (flag)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
