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