#include <bits/stdc++.h>
using namespace std;
const int M = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  long long int n, k;
  cin >> n >> k;
  long long int c[16] = {0};
  for (long long int i = 0; i < n; ++i) {
    long long int m = 0;
    for (long long int j = 0; j < k; ++j) {
      long long int val;
      cin >> val;
      if (val) m = (m | (1 << j));
    }
    c[m] = 1;
  }
  for (long long int i = 0; i < 16; ++i) {
    for (long long int j = 0; j < 16; ++j) {
      if (c[i] && c[j] && (i & j) == 0) {
        cout << "YES" << endl;
        exit(0);
      }
    }
  }
  cout << "NO";
}
