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