#include int main() { int n; scanf("%d", &n); int i, j; int a[1000006]; for (i = 0; i < n; i++) scanf("%d", &a[i]); int div[1000006]; for (i = 0; i < 1000006; i++) div[i] = i; for (i = 2; i < 1000006; i++) { if (div[i] != i) continue; for (j = 2; i * j < 1000006; j++) div[i * j] = i; } long long int x = 0, cnt; for (i = 0; i < n; i++) { cnt = 0; while (a[i] > 1) { cnt++; a[i] /= div[a[i]]; } x ^= cnt; } if (x == 0) printf("black\n"); else printf("white\n"); return 0; }