#include <bits/stdc++.h>
using namespace std;
inline int gi() {
  register int res = 0, s = 1;
  register char ch;
  for (ch = getchar(); (ch < '0' || ch > '9') && ch != '-'; ch = getchar())
    ;
  if (ch == '-') s = -1, ch = getchar();
  for (; ch >= '0' && ch <= '9'; ch = getchar()) res = 10 * res + ch - 48;
  return res * s;
}
int n, k;
int s[100005][5];
int st[16];
int main() {
  n = gi(), k = gi();
  for (register int i = 1; i <= n; ++i) {
    for (register int j = 1; j <= k; ++j) {
      s[i][j] = gi();
    }
    register int r = 0;
    for (register int j = 1; j <= k; ++j) r = r * 2 + s[i][j];
    st[r]++;
  }
  for (register int i = 0; i < 15; ++i) {
    for (register int j = 0; j < 15; ++j) {
      if (st[i] && st[j] && ((i & j) == 0)) {
        printf("YES\n");
        return 0;
      }
    }
  }
  printf("NO\n");
  return 0;
}
