#include using namespace std; void fast_io() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } int main() { fast_io(); const int M = 1e6; vector fac_cnt(M + 1); for (int i = 2; i <= M; i++) { for (int j = i; j <= M; j += i) { fac_cnt[j]++; } } int n; cin >> n; int grundy = 0; vector a(n); for (int i = 0; i < n; i++) { cin >> a[i]; grundy ^= fac_cnt[a[i]]; } cout << (grundy ? "white" : "black") << endl; }