#include #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> S = {{0, 0}}; rep(_,3) { set> 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; }