#include <bits/stdc++.h>
using namespace std;
const long double eps = 1e-9, pi = acos(-1.0);
int main() {
  int N;
  cin >> N;
  if (N % 2 == 0) {
    cout << "white" << endl;
    cout << "1 2" << endl;
  } else {
    cout << "black" << endl;
  }
  return 0;
}
