#include <bits/stdc++.h>
using namespace std;
const int inf = 0x7FFFFFFF;
const long long infl = 1ll * inf * inf;
const double eps = 1e-9;
const double pi = acos(-1.0);
int gcd(int a, int b) { return b > 0 ? gcd(b, a % b) : a; }
inline bool read(int& val) { return scanf("%d", &val) != -1; }
inline bool read(long long& val) { return scanf("%I64d", &val) != -1; }
inline bool read(double& val) { return scanf("%lf", &val) != -1; }
inline bool read(char* val) { return scanf("%s", val) != -1; }
template <class T1, class T2>
inline bool read(T1& a, T2& b) {
  return read(a) && read(b);
}
template <class T1, class T2, class T3>
inline bool read(T1& a, T2& b, T3& c) {
  return read(a) && read(b) && read(c);
}
template <class T1, class T2, class T3, class T4>
inline bool read(T1& a, T2& b, T3& c, T4& d) {
  return read(a) && read(b) && read(c) && read(d);
}
template <class T1, class T2, class T3, class T4, class T5>
inline bool read(T1& a, T2& b, T3& c, T4& d, T5& e) {
  return read(a) && read(b) && read(c) && read(d) && read(e);
}
using namespace std;
const int N = 55;
const int mod = 1000000007;
bool val[N][N];
int dp[N][8];
void add(int& a, int b) { a = (a + b) % mod; }
int main() {
  int n;
  read(n);
  if (n % 2 == 0) {
    puts("white");
    puts("1 2");
  } else
    puts("black");
  return 0;
}
