#include //#include using namespace std; //using namespace atcoder; using ll = long long; #define all(A) A.begin(),A.end() using vll = vector; #define rep(i, n) for (long long i = 0; i < (long long)(n); i++) using Graph = vector>; int main() { vector P(2e6, true); P[0] = P[1] = true; rep(p, 1e6 + 10) { if (P[p]) { for (ll j = p + p; j <= 1e6 + 4; j += p) { P[j] = false; } } } ll N; cin >> N; ll AN = 0; rep(i, N) { ll A; cin >> A; if (!P[A])AN++; } cout << (AN % 2 == 0 ? "black" : "white") << endl; }