#include <bits/stdc++.h>
using namespace std;
inline int readInt() {
  int x = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x = x * 10 + ch - '0';
    ch = getchar();
  }
  return x * f;
}
int FASTBUFFER;
int n;
int main() {
  while (cin >> n) {
    if (n & 1)
      cout << "black\n";
    else
      cout << "white\n1 2\n";
  }
  return 0;
}
