#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, k, a[5] = {}, v[20] = {};
  cin >> n >> k;
  for (long long i = 0; i < n; i++) {
    for (long long j = 0; j < k; j++) cin >> a[j];
    v[a[0] + 2 * a[1] + 4 * a[2] + 8 * a[3]] = 1;
  }
  for (long long i = 0; i <= 1 << k; i++)
    for (long long j = 0; j <= 1 << k; j++) {
      if (v[i] && v[j] && !(i & j)) {
        cout << "YES";
        return 0;
      }
    }
  cout << "NO";
  return 0;
}
