#include <bits/stdc++.h>
const double eps = 1e-10;
using namespace std;
using ll = long long;
using ul = unsigned long long;
using PII = pair<int, int>;
const int NN = (1 << 20);
const int NZ = 111000;
const int MM = 151;
const int mask = 1 << 4;
const int need = (1 << 30) - 1;
int n, k, m, s, x, a, b, c, d, e, q;
int main() {
  scanf("%d ", &n);
  if (n & 1) {
    printf("black");
  } else {
    printf("white");
    printf("\n");
    printf("1 2");
  }
  return 0;
}
