#include <bits/stdc++.h>
using namespace std;
string to_string(int val);
const int PI = acos(-1.0);
const int Max = 10055;
int main() {
  int n;
  cin >> n;
  if (n % 2 == 0)
    cout << "white\n1 2";
  else
    cout << "black";
  return 0;
}
