#include using namespace std; int main(){ int n, k; cin >> n >> k; vector a(n); for(int&i : a){ cin >> i; } auto convert = [&](vector num){ int res = 0; for(int i = 0; i<=30; ++i){ if(num[i]){ res|=1< lnum, rnum; lnum.resize(31, 0); rnum.resize(31, 0); int l, r; l = r = 0; auto change = [&](int x, int op, vector&arr){ for(int k = 0; k<=30; ++k){ arr[k] += op*(x>>k); } }; long long res = 0; for(int i = 0; i