#include <bits/stdc++.h>
using namespace std;
const int inf = 0x3f3f3f3f;
const long long INF = 0x7ffffffffffffffll;
const int mod = 1e9 + 7;
const int maxn = 1e5 + 5;
const int maxv = 1e3 + 5;
const double pi = acos(-1.0);
const double eps = 1e-9;
int main() {
  int n;
  scanf("%d", &n);
  if (n & 1)
    printf("black\n");
  else
    printf("white\n1 2\n");
  return 0;
}
