#include <bits/stdc++.h>
using namespace std;
void print(vector<long long> v) {
  long long n = v.size();
  for (long long i = 0; i < n; i++) {
    cout << v[i] << " ";
  }
  cout << '\n';
}
long long power(long long a, long long b) {
  long long res = 1;
  while (b != 0) {
    if (b & 1) {
      res *= a;
    }
    a = (a * a);
    b = (b / 2);
  }
  return res;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long n;
  cin >> n;
  if (n % 2) {
    cout << "black";
  } else {
    cout << "white" << '\n';
    cout << 1 << " " << 2;
  }
  return 0;
}
