#include <bits/stdc++.h>
using namespace std;
long long MOD = 1e9 + 7;
void prinvector(std::vector<long long> v) {
  for (long long i = 0; i < v.size(); ++i) {
    cout << v[i] << " ";
  }
  cout << " " << endl;
}
void prinarray(long long a[], long long n) {
  for (long long i = 0; i < n; ++i) {
    cout << a[i] << " ";
  }
  cout << " " << endl;
}
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.precision(10);
  long long n;
  cin >> n;
  if (n <= 2) {
    cout << "white" << endl;
    cout << 1 << " " << n << endl;
  } else if (n % 2 == 0) {
    cout << "white" << endl;
    cout << 1 << " " << 2 << endl;
  } else {
    cout << "black" << endl;
  }
  return 0;
}
