#include <bits/stdc++.h>
using namespace std;
inline int toInt(string s) {
  int v;
  istringstream sin(s);
  sin >> v;
  return v;
}
template <class T>
inline string toString(T x) {
  ostringstream sout;
  sout << x;
  return sout.str();
}
template <class T>
inline T sqr(T x) {
  return x * x;
}
const double eps = 1e-10;
const double pi = acos(-1.0);
const long long INF = 1LL << 62;
const int inf = 1 << 29;
int main(void) {
  int n;
  cin >> n;
  if (n % 2 == 0) {
    cout << "white" << endl;
    cout << 1 << " " << 2 << endl;
  } else
    cout << "black" << endl;
  return 0;
}
