#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); for(int j = 0;j>j&1) cnt[i][j]++; else if(j<64*2) if(now[1]>>(j-64)&1) cnt[i][j]++; else if(j<64*3) if(now[2]>>(j-64*2)&1) cnt[i][j]++; else if(now[3]>>(j-64*3)&1) cnt[i][j]++; } } bool fn = true; for(int i = 0;i