#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y;
  cin >> x >> y;
  if (x == 0 && y == 0 || x == 0 || y == 0)
    cout << "black" << endl;
  else if ((x > 0 && y > 0) || (x < 0 && y < 0)) {
    x = fabs(x), y = fabs(y);
    bool flag = false;
    for (int i = 1; i <= 1500; i++)
      if (x * x + y * y == i * i) {
        flag = true;
        break;
      }
    if (flag)
      cout << "black" << endl;
    else {
      int r = int(sqrt(x * x + y * y));
      if (r % 2 == 1)
        cout << "white" << endl;
      else
        cout << "black" << endl;
    }
  } else {
    x = fabs(x), y = fabs(y);
    bool flag = false;
    for (int i = 1; i <= 1500; i++)
      if (x * x + y * y == i * i) {
        flag = true;
        break;
      }
    if (flag)
      cout << "black" << endl;
    else {
      int r = int(sqrt(x * x + y * y));
      if (r % 2 == 1)
        cout << "black" << endl;
      else
        cout << "white" << endl;
    }
  }
}
