#include <bits/stdc++.h>
using namespace std;
bool dp[1009];
void test_case() {
  long long n, k;
  cin >> n >> k;
  long long arr[n][k];
  for (long long i = 0; i < (long long)(n); i++) {
    long long mask = 0;
    for (long long j = 0; j < (long long)(k); j++) {
      cin >> arr[i][j];
      if (arr[i][j]) {
        mask |= (1 << j);
      }
    }
    dp[mask] = true;
    if (mask == 0) {
      cout << "YES"
           << "\n";
      ;
      return;
    }
  }
  for (long long i = 0; i < (1 << k); i++) {
    for (long long j = 0; j < (1 << k); j++) {
      if (dp[i] && dp[j] && (i & j) == 0) {
        cout << "YES"
             << "\n";
        ;
        return;
      }
    }
  }
  cout << "NO"
       << "\n";
  ;
}
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cout << fixed << setprecision(20);
  long long t = 1;
  while (t--) {
    test_case();
  }
}
