#include using namespace std; struct iofast_t { iofast_t() { ios::sync_with_stdio(false); cin.tie(nullptr); } } iofast; struct uns_t {} uns; template auto vec(Element init, Head arg, Args ...args) { if constexpr (sizeof...(Args) == 0) return std::vector(arg, init); else return std::vector(arg, vec(init, args...)); } template auto vec(uns_t, Head arg, Args ...args) { return vec(Element(), arg, args...); } template > T &chmin(T &l, T r, Compare &&f = less()) { return l = min(l, r, f); } template > T &chmax(T &l, T r, Compare &&f = less()) { return l = max(l, r, f); } constexpr int lim = 1000000; int sieve[lim + 1]; int main() { iota(begin(sieve), end(sieve), 0); for (int i = 2; i <= lim / i; ++i) { if (sieve[i] != i) { continue; } for (int j = i * i; j <= lim; j += i) { chmin(sieve[j], i); } } auto sum = [&](int x) { int sum = 0; while (1 < x) { auto p = sieve[x]; int count = 0; while (x % p == 0) { x /= p; ++count; } sum += count; } return sum; }; int n; cin >> n; int all = 0; while (n--) { int a; cin >> a; all ^= sum(a); } cout << (all != 0 ? "white" : "black") << endl; }