#include <bits/stdc++.h>
using namespace std;
const int inf = 2e9;
const int MOD = 1e9 + 7;
const int N = 0;
int n;
int main() {
  cin >> n;
  if (n % 2)
    printf("black");
  else
    printf("white\n1 2");
}
