#include using namespace std; using ll = long long; using ull =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(5,0)); for(ll i = 0;i now(5,mm); int c = 0; vector nn(5,0); for(int j = 0;j>j)&1LL){ cnt[i][j]++; //cout<>(j-63))&1LL){ cnt[i][j]++; }//cout<>(j-63*2))&1LL) cnt[i][j]++; }else if(j<63*4) { if((now[3]>>(j-63*3))&1LL) cnt[i][j]++; }else if((now[4]>>(j-63*4))&1LL) cnt[i][j]++; } } bool fn = true; for(int i = 0;i