#include <bits/stdc++.h>

using namespace std;

int dx[8] = {-2, -2, -1, -1, +1, +1, +2, +2};
int dy[8] = {-1, +1, -2, +2, -2, +2, -1, +1};

int X, Y;

bool dfs(int y, int x, int depth)
{
    if (y == Y && x == X) return true;

    if (depth == 3) return false;

    bool res = false;

    for (int i = 0; i < 8; ++i) res = res || dfs(y + dy[i], x + dx[i], depth + 1);

    return res;
}

int main()
{
    cin >> X >> Y;
    cout << (dfs(0, 0, 0) ? "YES" : "NO") << endl;
}