#include using namespace std; #include #include #include #include #include template inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } #define rep(i,n) for (int i = 0; i < (n); ++i) typedef long long ll; typedef long double ld; using P=pair; const ld INF=1e18; const int mod=1e9+7; vector>prime_factorize(ll N) { vector>res; for (ll i= 2; i*i<=N;i++) { if (N%i!=0){continue;} ll cnt=0; while(N%i==0){ cnt++; N/=i; } res.push_back({i, cnt}); } if(N!=1){res.push_back({N, 1});} return res; } void solve(){ int n; cin>>n; vectora(n); rep(i,n) cin>>a[i]; mapmp; ll ans=0; rep(i,n){ auto t=prime_factorize(a[i]); ll s=0; for(auto u:t){ s+=u.second; } ans^=s; } if(ans){cout<<"white"<