#include <bits/stdc++.h>
using namespace std;
using namespace std;
long long n, m, cnt = 0, a, b, x, y, z;
int main() {
  cin >> n;
  if (n & 1)
    cout << "black" << endl;
  else
    cout << "white" << endl << 1 << " " << 2 << endl;
}
