#include #include #include #include #include #include #include #include #include #include #include using namespace std; using namespace atcoder; typedef long long ll; #define rep(i,n) for (int i = 0; i < int(n);i++) int main(){ int n; cin >> n; vector cnt(n); rep(i,n){ int x; cin >> x; for (int j = 2; j*j <= x;j++){ while(x%j == 0){ x/=j; cnt[i]++; } } if (x != 1) cnt[i]++; } int ans = 0; for (int i = 0; i < n;i++){ ans ^= cnt[i]; } if (ans != 0) cout << "white" << endl; else cout << "black" << endl; return 0; }