#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
const int N = 1e6;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  if (n % 2 == 0) {
    cout << "white\n1 2";
  } else {
    cout << "black\n";
  }
  return 0;
}
