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