#include <bits/stdc++.h>
using namespace std;
void solve();
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long t;
  t = 1;
  for (long long test = 1; test <= t; test++) {
    solve();
  }
  return 0;
}
inline void solve() {
  long long n;
  cin >> n;
  if (n % 2 == 0) {
    cout << "white"
         << "\n";
    cout << 1 << " " << 2 << "\n";
  } else
    cout << "black"
         << "\n";
}
