#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int n, m, len, stp;
  cin >> n >> m;
  len = n * n + m * m;
  for (stp = 0; stp * stp < len; stp++)
    ;
  if (stp * stp == len)
    cout << "black";
  else if (n == 0)
    cout << "black";
  else if (m == 0)
    cout << "black";
  else if ((n < 0 && m < 0) || (n > 0 && m > 0)) {
    cerr << 1;
    if (stp % 2 == 0)
      cout << "white";
    else
      cout << "black";
  } else {
    if (stp % 2 == 1)
      cout << "white";
    else
      cout << "black";
  }
  return 0;
}
