#include <bits/stdc++.h>
using namespace std;
using namespace std;
int n;
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(0);
  cin >> n;
  if (n % 2 == 0) {
    cout << "white" << endl;
    cout << "1 2";
    return 0;
  } else
    cout << "black";
}
