#include <iostream>
using namespace std;

#define in cin

int main() {
    int n, d, x;
    while (in >> n >> d && n != 0) {
        int dias[n];
        for (int j = 0; j < n; j++)
            dias[j] = 0;
        for (int i = 0; i < d; i++)
            for (int j = 0; j < n; j++) {
                in >> x;
                dias[j] += x;
            }
        int j = 0;
        while (j < n && dias[j] != d) j++;
        cout << ((j < n) ? "yes" : "no") << endl;
    }
    return 0;
}

