#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const int INF = 0x3c3c3c3c;
const long long INFL = 0x3c3c3c3c3c3c3c3c;
const int MAX_N = 102;
int main() {
  int n;
  scanf("%d", &n);
  if (n % 2 == 0)
    printf("white\n1 2");
  else
    printf("black");
  return 0;
}
