#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  vector<int> a(16), b(5);
  while (n--) {
    for (int i = 1; i <= k; i++) scanf("%d", &b[i]);
    a[b[1] + b[2] * 2 + b[3] * 4 + b[4] * 8] = 1;
  }
  for (int i = 0; i < (1 << k); i++) {
    for (int j = 0; j < (1 << k); j++) {
      if (!(i & j) && a[i] && a[j]) return cout << "YES", 0;
    }
  }
  cout << "NO";
  return 0;
}
