#include <bits/stdc++.h>
using namespace std;
template <typename T1, typename T2, typename T3>
struct pair3 {
  T1 first;
  T2 second;
  T3 third;
};
template <typename T1, typename T2, typename T3, typename T4>
struct pair4 {
  T1 first;
  T2 second;
  T3 third;
  T4 fourth;
};
const long long MOD = 1000000007;
const long double PI = acos(-1.0);
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n;
  cin >> n;
  if (n % 2) {
    cout << "black" << endl;
  } else {
    cout << "white" << endl;
    cout << "1 2" << endl;
  }
  return 0;
}
