#include <bits/stdc++.h>
using namespace std;
const int maxn = 100005;
const long long INF = (1e9) + 7;
const long double EPS = 1e-8;
int main() {
  ios_base::sync_with_stdio(0);
  int n;
  cin >> n;
  if (n % 2 == 1) {
    cout << "black";
  } else {
    cout << "white" << endl;
    cout << "1 2";
  }
  return 0;
}
