#include using namespace std; int main(){ int N; cin >> N; vector A(N); for (int i = 0; i < N; i++){ cin >> A[i]; } vector> f(100001); for (int i = 1; i <= 100000; i++){ for (int j = i * 2; j <= 100000; j += i){ f[j].push_back(i); } } vector grundy(100001, 0); for (int i = 2; i <= 100000; i++){ set st; for (int j : f[i]){ st.insert(grundy[j]); } while (st.count(grundy[i]) == 1){ grundy[i]++; } } int X = 0; for (int i = 0; i < N; i++){ X ^= grundy[A[i]]; } if (X > 0){ cout << "white" << endl; } else { cout << "black" << endl; } }