#include <bits/stdc++.h>
using namespace std;
int inf = (1e9) + 7;
int mod = 998244353;
int main() {
  int n;
  scanf("%d", &n);
  if (n % 2 == 0) {
    printf("white\n1 2\n");
  } else
    printf("black\n");
}
