#include <bits/stdc++.h>
using namespace std;
map<long long int, map<long long int, bool> > my;
int main() {
  long long int n;
  cin >> n;
  my[1][n] = 1;
  if (n % 2 == 0) {
    cout << "white" << endl;
    cout << 1 << " " << 2 << endl;
  } else
    cout << "black" << endl;
  return 0;
}
