#include #include #include using namespace std; int main() { int x, y; cin >> x >> y; int dx[] = { 0, 1, 2, -1, -2, 1, 2, -1, -2 }, dy[] = { 0, 2, 1, 2, 1, -2, -1, -2, -1 }; for(int i = 0; i < 9; i++) { for(int j = i; j < 9; j++) { for(int k = j; k < 9; k++) { int xx = dx[i] + dx[j] + dx[k]; int yy = dy[i] + dy[j] + dy[k]; if(x == xx && y == yy) { cout << "YES" << endl; return 0; } } } } cout << "NO" << endl; }