#pragma GCC optimize("Ofast") #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long int ll; typedef unsigned long long ull; mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count()); ll myRand(ll B) { return (ull)rng() % B; } template map factorize(T x){ map res; for(ll i=2;i*i<=x;i++){ while(x%i==0){ x/=i; res[i]++; } } if(x!=1) res[x]++; return res; } int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int n; cin >> n; vector a(n); ll k=0; for(int i=0;i> a[i]; auto m=factorize(a[i]); a[i]=0; for(auto p:m){ a[i]+=(p.second); } //cout << a[i] << endl; k^=a[i]; } if(k){ cout << "white" << endl; } else{ cout << "black" << endl; } }