#include <bits/stdc++.h>
using namespace std;
const int N = (int)1e5 + 123;
const long long INF = (long long)1e18 + 123;
const int inf = (int)1e9 + 123;
const int MOD = (int)1e9 + 7;
int n;
int main() {
  cin >> n;
  if (n % 2 == 0) {
    cout << "white\n";
    cout << "1 2";
  } else
    cout << "black";
  return 0;
}
