#include <bits/stdc++.h>
using namespace std;
void FastInputOutput() {
  ios_base ::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
void ReadFromFile() { freopen("input.in", "r", stdin); }
int main() {
  int TCF = 1;
  ;
  while (TCF--) {
    int n;
    scanf("%d", &n);
    printf(n & 1 ? "black" : "white\n1 2");
  }
  return 0;
}
