#include <bits/stdc++.h>
const int inf = INT_MAX;
const int MAX = 1e3 + 8;
const long long MOD = 1e9 + 7;
const int TOT_PRIMES = 1e6 + 9;
const int MAX_A = 71;
const int LN = 20;
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  int a[32];
  memset(a, 0, sizeof(a));
  for (int i = 0; i < n; i++) {
    int res = 0;
    for (int j = 0; j < k; j++) {
      int x;
      cin >> x;
      res = x + res * 2;
    }
    a[res] = 1;
  }
  int f = 0;
  for (int i = 0; i < (1 << k); i++) {
    for (int j = 0; j < (1 << k); j++) {
      if ((!(i & j)) && a[i] && a[j]) f = 1;
    }
  }
  if (f)
    cout << "YES";
  else
    cout << "NO";
}
