#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < (n); i++)
using namespace std;
typedef long long ll;

int main(){
    cin.tie(0);
    ios::sync_with_stdio(0);
    
    int dx[] = {-2, -2, -1, -1, +1, +1, +2, +2};
    int dy[] = {-1, +1, -2, +2, -2, +2, -1, +1};
    set<pair<int,int>> S = {{0, 0}};
    rep(_,3) {
        set<pair<int,int>> T;
        for(auto [x, y] : S) rep(d,8) T.insert({x + dx[d], y + dy[d]});
        for(auto [x, y] : T) S.insert({x, y});
    }

    int X,Y; cin >> X >> Y;
    cout << (S.count({X, Y}) ? "YES" : "NO") << endl;
}