#include <bits/stdc++.h>
using namespace std;
bool comp(int a, int b) { return (a > b); }
int gcd(int a, int b) {
  if (b == 0)
    return a;
  else
    return gcd(b, a % b);
}
int main(void) {
  int n;
  cin >> n;
  if (n % 2 == 1)
    cout << "black";
  else
    cout << "white\n1 2";
  return 0;
}
