#include using namespace std; #define REP(i,n) for(int i=0; i<(int)(n); i++) set > vis; void go(int x, int y, int d = 0) { if (d > 3) return; vis.insert({x, y}); for (int i = -2; i <= 2; i++) { for (int j = -2; j <= 2; j++) { if ((abs(i) == 2 && abs(j) == 1) || (abs(i) == 1&& abs(j) == 2)) { go(x+i, y+j, d+1); } } } } int main() { ios_base::sync_with_stdio(0); cin.tie(0); go(0, 0); int x, y; cin >> x >> y; if (vis.count({x, y})) cout << "YES" << endl; else cout << "NO" << endl; return 0; }