#include <bits/stdc++.h>
using namespace std;
template <typename T>
std::ostream& operator<<(std::ostream& str, const std::vector<T>& v) {
  str << "[";
  for (auto n : v) str << n << ", ";
  str << "]";
  return str;
}
int main() {
  cin.sync_with_stdio(false);
  cout.sync_with_stdio(false);
  int n;
  cin >> n;
  if (n & 1) {
    cout << "black" << endl;
  } else {
    cout << "white" << endl;
    cout << 1 << " " << 2 << endl;
  }
}
