#include using namespace std; using ll = long long; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int n,m; cin>>n>>m; vector s(m); for(int i = 0;i>s[i]; vector > cnt(1<<8,vector(1<<8,0)); vector >mask(m,vector(4,0)); for(ll i = 0;i now(4,mm); vector nn(4,mm); int c1 = 1,c2 = 1; for(int j = 0;j>j&1)&&(now[0]>>j)&1) cnt[i][j]++; else if(j<64*2) if(((nn[1]>>(j-64))&1)&&(now[1]>>(j-64))&1) cnt[i][j]++; else if(j<64*3) if(((nn[2]>>(j-64*2))&1)&&(now[2]>>(j-64*2))&1) cnt[i][j]++; else if(((nn[3]>>(j-64*3))&1)&&(now[3]>>(j-64*3))&1) cnt[i][j]++; } } bool fn = true; for(int i = 0;i