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