#include <bits/stdc++.h>
using namespace std;
int a[300005];
long long ans = 0;
inline long long read() {
  char c = getchar();
  long long f = 1, x = 0;
  while (c < '0' || c > '9') {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9') {
    x = (x << 1) + (x << 3) + (c ^ '0');
    c = getchar();
  }
  return x * f;
}
int main() {
  if (read() & 1) {
    cout << "black";
  } else
    cout << "white\n1 2";
  return 0;
}
