#includeusing namespace std;map ans;int main(){ ios::sync_with_stdio(false); int n,m; cin>>n>>m; for(int i=0;i >x; a=a<<1; a+=x; } ans[a]++; } int sum =0; int maxn = (1< ::iterator it=ans.begin(); it!=ans.end();it++) { int x = it->first; int num = x^maxn; sum += ans[num]*it->second; } cout<