#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
  long long n, k;
  cin >> n >> k;
  vector<vector<long long> > a(n, vector<long long>(k));
  for (long long i = 0; i < (n); ++i) {
    for (long long j = 0; j < (k); ++j) {
      cin >> a[i][j];
    }
  }
  map<long long, long long> cnt;
  for (long long i = 0; i < n; ++i) {
    long long mask = 0;
    for (long long j = 0; j < k; ++j) {
      if (a[i][j] == 1) {
        mask |= (1 << j);
      }
    }
    cnt[mask]++;
  }
  if (cnt[0] > 0) {
    cout << "YES";
    return 0;
  }
  vector<long long> tmp;
  for (auto x : cnt) {
    if (x.second > 0) {
      tmp.push_back(x.first);
    }
  }
  for (long long i = 0; i < tmp.size(); ++i) {
    for (long long j = 0; j < tmp.size(); ++j) {
      bool ok = true;
      long long mask1 = tmp[i];
      long long mask2 = tmp[j];
      for (long long bit = 0; bit < k; ++bit) {
        if (((1 << bit) & mask1) && ((1 << bit) & mask2)) {
          ok = false;
        }
      }
      if (ok) {
        cout << "YES";
        return 0;
      }
    }
  }
  cout << "NO";
}
