#include using namespace std; using ll = long long; int main(){ ios::sync_with_stdio(false); cin.tie(0); int n, m; cin >> n >> m; vector> B(256); for(int i = 0; i < m; i++){ bitset<256> b; cin >> b; for(int j = 0; j < n; j++){ if(b[j] == 0) B[j] |= b; } } for(int i = 0; i < n; i++){ for(int j = i + 1; j < n; j++){ if(!(B[i][j] | B[j][i])){ cout << "No" << '\n'; return 0; } } } cout << "Yes" << '\n'; }