#include <bits/stdc++.h>
using namespace std;
using llint = long long;
using pii = pair<int, int>;
int main() {
  ios_base::sync_with_stdio(false);
  int N;
  cin >> N;
  if (N % 2 == 1)
    cout << "black";
  else
    cout << "white\n1 2";
  return 0;
}
