#include <bits/stdc++.h>
using namespace std;
const long long int inf = 0x3f3f3f3f3f3f3f3fll;
double hp[40005];
long long int n, m, k, q;
long long int mx;
vector<int> row[40005];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> k;
  vector<bool> number(16, false);
  int limit = pow(2, k) - 1;
  for (int i = 0; i < n; i++) {
    m = 1;
    int val = 0;
    for (int j = 0; j < k; j++) {
      int a;
      cin >> a;
      val += m * a;
      m *= 2;
    }
    number[val] = true;
  }
  m = 0;
  for (int i = 1; i < limit; i++) {
    for (int j = 1; j < limit; j++) {
      if ((i & j) == 0 && number[i] && number[j]) {
        m = 1;
        break;
      }
    }
    if (m == 1) break;
  }
  if (m == 1 || number[0]) {
    cout << "YES" << endl;
  } else
    cout << "NO" << endl;
  return 0;
}
