#include <bits/stdc++.h>
const long long inf = LLONG_MAX;
const long long mod = 1000000007;
const double PI = 3.14159265358979323846;
const long long N = 1e6 + 6;
const long long M = 3e5 + 5;
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long tc;
  tc = 1;
  while (tc--) {
    long long n;
    cin >> n;
    if (n & 1) {
      cout << "black"
           << "\n";
    } else {
      cout << "white"
           << "\n";
      cout << 1 << " " << 2;
    }
  }
}
