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