#include <bits/stdc++.h>
using ll = long long int;
using vi = std::vector<int>;
using ii = std::pair<int, int>;
using iii = std::pair<ii, int>;
using vii = std::vector<ii>;
const int N = 1010101;
const int MD = 1e9 + 7;
void solve() {
  int n;
  std::cin >> (n);
  if (n & 1)
    puts("black");
  else
    puts("white\n1 2");
}
int main() {
  std::ios_base::sync_with_stdio(0);
  std::cin.tie(0);
  std::cout.tie(0);
  solve();
  return 0;
}
