#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, n;
  while (scanf("%d", &n) != EOF) {
    if (n & 1)
      printf("black\n");
    else
      printf("white\n1 2\n");
  }
  return 0;
}
