#include <bits/stdc++.h>
using namespace std;
long long inv(long long a, long long p) {
  long long temp = 1;
  while (p != 0) {
    if (p % 2 == 1) temp = (temp * a) % (int)(1e9 + 7);
    a = ((long long)a * a) % (int)(1e9 + 7);
    p = p / 2;
  }
  return temp;
}
int ar[18][1 << 17];
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  int n;
  cin >> n;
  if (n % 2 == 0)
    cout << "white\n1 2";
  else
    cout << "black\n";
  return 0;
}
