#include #define mod 998244353 using namespace std; vector fl(32,0); void rep(int tg,vector a){ if(a.size()<=1){return;} vector a0,a1; for(auto &nx : a){ if(nx&(1ll<> n; vector a(n); for(auto &nx : a){cin >> nx;} sort(a.begin(),a.end()); a.erase(unique(a.begin(), a.end()), a.end()); rep(29,a); long long res=1; for(auto &nx : fl){ if(nx==1){res*=2;res%=mod;} } cout << res << "\n"; return 0; }