#include #include #include using namespace std; int main(){ int X,Y; cin >> X >> Y; int dx[8] = {-2,-2,-1,-1,1,1,2,2}; int dy[8] = {-1,1,-2,2,-2,2,-1,1}; queue > que; que.push(make_pair(0,0)); int count = 0; while(!que.empty()){ pair cur = que.front(); que.pop(); if(cur == make_pair(X,Y)){ cout << "YES" << endl; return 0; } if(count < 3){ for(int i=0;i<8;i++){ pair next = make_pair(cur.first + dx[i],cur.second + dy[i]); que.push(next); } count++; }else{ cout << "NO" << endl; return 0; } } cout << "NO" << endl; return 0; }