#include <bits/stdc++.h>
using namespace std;
const int Tmax = 100005;
int n, k, s[Tmax];
bool v[Tmax];
int main() {
  int i, j, tmp, sum;
  scanf("%d%d", &n, &k);
  for (i = 1; i <= n; i++) {
    sum = 0;
    for (j = 0; j < k; j++) {
      scanf("%d", &tmp);
      sum += tmp << j;
    }
    s[i] = sum;
    v[sum] = true;
  }
  for (i = 1; i <= n; i++) {
    for (j = 0; j <= 31; j++)
      if ((s[i] & j) == 0 && v[j] == true) {
        printf("YES");
        return 0;
      }
  }
  printf("NO");
  return 0;
}
