#include <bits/stdc++.h>
using namespace std;
const long long int N = 5e5 + 7;
const long long int mod = 998244353;
void solve1() {
  long long int n;
  cin >> n;
  if (n % 2 == 0) {
    cout << "white" << endl << 1 << " " << 2;
  } else
    cout << "black";
}
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  srand(time(0));
  long long int cghf = 1;
  while (cghf--) {
    solve1();
  }
}
