#include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define llong long long int main() { int x, y; cin >> x >> y; vector> coord; coord.push_back(make_pair(0, 0)); rep(i, 3) { int limit = coord.size(); rep(j, limit) { int posx = coord[j].first; int posy = coord[j].second; coord.push_back(make_pair(posx-1, posx-2)); coord.push_back(make_pair(posx-2, posx-1)); coord.push_back(make_pair(posx+1, posx-2)); coord.push_back(make_pair(posx-2, posx+1)); coord.push_back(make_pair(posx-1, posx+2)); coord.push_back(make_pair(posx+2, posx-1)); coord.push_back(make_pair(posx+1, posx+2)); coord.push_back(make_pair(posx+2, posx+1)); } } for(pair a: coord) { if(a.first == x && a.second == y) { cout << "YES\n"; return 0; } } cout << "NO\n"; }