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