#include <bits/stdc++.h>
using namespace std;
set<string> st;
int n, k;
bool solve(set<string>::iterator it, vector<int> v, int problemas) {
  if (it == st.end()) return 0;
  vector<int> tomar = v;
  string problema = *it;
  bool da = true;
  for (int i = 0; i < k; ++i) {
    if (problema[i] == '1') {
      tomar[i]++;
    }
    if (tomar[i] * 2 > problemas + 1) {
      da = false;
    }
  }
  if (da)
    return 1;
  else {
    it++;
    return max(solve(it, v, problemas), solve(it, tomar, problemas + 1));
  }
}
int main() {
  cin >> n >> k;
  string s;
  char c;
  for (int i = 0; i < n; ++i) {
    s = "";
    for (int j = 0; j < k; ++j) {
      cin >> c;
      s += c;
    }
    st.insert(s);
  }
  if (solve(st.begin(), vector<int>(k, 0), 0))
    cout << "YES\n";
  else
    cout << "NO\n";
}
