#include #include #include using namespace std; typedef long long LL; bool srch(LL gx, LL gy, LL x, LL y, int rest){ if(gx == x && gy == y) return true; if(rest <= 0) return false; if(srch(gx, gy, x + 2, y + 1, rest-1)) return true; if(srch(gx, gy, x + 2, y - 1, rest-1)) return true; if(srch(gx, gy, x - 2, y + 1, rest-1)) return true; if(srch(gx, gy, x - 2, y - 1, rest-1)) return true; if(srch(gx, gy, x + 1, y + 2, rest-1)) return true; if(srch(gx, gy, x - 1, y + 2, rest-1)) return true; if(srch(gx, gy, x + 1, y - 2, rest-1)) return true; if(srch(gx, gy, x - 1, y - 2, rest-1)) return true; return false; } int main(){ LL x, y; cin >> x >> y; if(srch(x, y, 0, 0, 3)){ cout << "YES" << endl; }else{ cout << "NO" << endl; } return 0; }