#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