#include <bits/stdc++.h>
using namespace std;
int a[200];
int main() {
  int n, k, i, j, t, t1;
  cin >> n >> k;
  memset(a, 0, sizeof(a));
  for (i = 0; i < n; i++) {
    t = 0;
    for (j = 0; j < k; j++) {
      cin >> t1;
      t += (t1 << j);
    }
    a[t] = 1;
  }
  if (a[0] == 1) {
    cout << "YES";
    return 0;
  }
  for (i = 1; i < 1 << k; i++)
    for (j = 1; j < 1 << k; j++)
      if (a[i] == 1 && a[j] == 1 && ((i & j) == 0)) {
        cout << "YES";
        return 0;
      }
  cout << "NO";
  return 0;
}
