#include <bits/stdc++.h>
using namespace std;
long long int n;
long long int k;
map<string, long long int> mp;
int main() {
  cin >> n >> k;
  for (long long int i = 1; i <= n; i++) {
    string s = "";
    for (long long int j = 1; j <= k; j++) {
      char c;
      cin >> c;
      s += c;
    }
    mp[s]++;
  }
  for (auto x : mp) {
    string s = x.first;
    bool f = 1;
    for (auto c : s)
      if (c == '1') f = 0;
    if (f) {
      cout << "YES" << endl;
      return 0;
    }
  }
  vector<string> pp;
  for (auto x : mp) pp.push_back(x.first);
  for (long long int i = 0; i < pp.size(); i++) {
    for (long long int j = i; j < pp.size(); j++) {
      if (i == j) continue;
      bitset<4> foo(pp[i]);
      bitset<4> goo(pp[j]);
      bitset<4> res = foo & goo;
      if (res.to_ulong() == 0) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
