#include <bits/stdc++.h>

using namespace std;

int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int X, Y;
  cin >> X >> Y;
  function<bool(int, int, int)> rec = [&](int x, int y, int d) {
    if (d == 3) return X == x && Y == y;
    bool res = X == x && Y == y;
    res = res | rec(x - 2, y - 1, d + 1);
    res = res | rec(x - 2, y + 1, d + 1);
    res = res | rec(x - 1, y - 2, d + 1);
    res = res | rec(x - 1, y + 2, d + 1);
    res = res | rec(x + 1, y - 2, d + 1);
    res = res | rec(x + 1, y + 2, d + 1);
    res = res | rec(x + 2, y - 1, d + 1);
    res = res | rec(x + 2, y + 1, d + 1);
    return res;
  };
  if (rec(0, 0, 0)) {
    cout << "YES" << '\n';
  } else {
    cout << "NO" << '\n';
  }
  return 0;
}