#include using namespace std; #define i64 long long int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int n,limt; cin>>n>>limt; vectora(n); for(int i=0;i>a[i]; const int B=9; const int M=1<>B; int lo=limt&mask; for(int v:a){ int x=v>>B; int y=v&mask; for(int t=0;t>i)&1)==0){ res+= ( (i64)1<>i)&1) cnt2[x][i]++; cnt3[x]++; } cout<