#include using namespace std; #define int long long #ifndef ONLINE_JUDGE #define dbg(x...) do{cout << "\033[32;1m" << #x << "->" ; err(x);} while(0) void err(){cout << "\033[39;0m" << endl;} template class T,typename t,typename... A> void err(T a,A... x){for (auto v:a) cout << v << ' '; err(x...);} template void err(T a,A... x){cout << a << ' '; err(x...);} #else #define dbg(...) #endif typedef long long ll; typedef pair pi; typedef vector vi; template using vc=vector; template using vvc=vc>; template void mkuni(vector&v) { sort(v.begin(),v.end()); v.erase(unique(v.begin(),v.end()),v.end()); } template void print(T x,int suc=1) { cout< void print(const vector&v,int suc=1) { for(int i=0;i>N>>M; FOR(i,N) { x=0; FOR(j,M) { cin>>y; x=x*2+y; } C[x]++; } dp[0]=1; int mask,mask2; FOR(mask,1<=0) dp[mask|(1<