#include <bits/stdc++.h>
using namespace std;
const long long infl = 1e18 + 5;
long long int m, n, p, q, x, y, k, mx = -1, mn = infl, f, val, sz, sm, cnt, ans,
                                   t = 1, i, j, ind = -1;
long long int a[1000004];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  if (fopen("inp.txt", "r")) {
    freopen("myfile.txt", "w", stdout);
    freopen("inp.txt", "r", stdin);
  }
  cin >> n;
  if (n % 2 == 0) {
    cout << "white\n1 2";
  } else {
    cout << "black\n";
  }
  return 0;
}
