#include using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); int N,M; cin >> N >> M; vector S(M); set X; for(auto &s : S){ string t; cin >> t; int p2 = 1; for(auto &c : t){ s += (c-'0')*p2; p2 *= 2; } X.insert(s); } set Y; for(int i=0; i Z = {0}; for(auto y : Y){ Z.insert(y); for(auto &z : Z) Z.insert(y|z); if(Z.size() > X.size()) break; } if(X == Z) cout << "Yes\n"; else cout << "No\n"; }