#include using namespace std; typedef long long ll; template bool chmin(T1 &a,T2 b){if(a<=b)return 0; a=b; return 1;} template bool chmax(T1 &a,T2 b){if(a>=b)return 0; a=b; return 1;} ll dx[4]={0,1,-1,0}; ll dy[4]={1,0,0,-1}; signed main(){ ios::sync_with_stdio(false); cin.tie(0); cout << fixed << setprecision(20); ll n,q; cin>>n>>q; ll a[n]; for(int i=0;i>a[i]; string s; cin>>s; ll t[44]={}; ll k[44]={}; for(ll i=0;i<44;i++){ ll now = (1LL<>x; ll ans = 0; for(ll i=0;i<44;i++){ if(x & (1LL<