#include using namespace std; typedef pair P; typedef long long LL; typedef unsigned long long ULL; template inline bool amax (T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; } template inline bool amin (T &a, const T &b) { if (a > b) { a = b; return 1; } return 0; } template ostream& operator << (ostream &os, const vector &v) { os << "["; for (typename vector::const_iterator it = v.begin(); it != v.end(); it++) { os << (it != v.begin() ? ", " : "") << *it; } os << "]"; return os; } template ostream& operator << (ostream &os, const set &s) { os << "{"; for (typename set::const_iterator it = s.begin(); it != s.end(); it++) { os << (it != s.begin() ? ", " : "") << *it; } os << "}"; return os; } template ostream& operator << (ostream &os, const map &m) { os << "{"; for (typename map::const_iterator it = m.begin(); it != m.end(); it++) { os << (it != m.begin() ? ", " : "") << it->first << "->" << it->second; } os << "}"; return os; } template ostream& operator << (ostream &os, const pair &p) { os << "(" << p.first << ", " << p.second << ")"; return os; } template istream& operator >> (istream &is, vector &v) { for (size_t i = 0; i < v.size(); i++) is >> v[i]; return is; } template inline T lexical_cast (const S &s) { T t; stringstream ss; ss << s; ss >> t; return t; } //> v < ^ (clock wise) int dx[] = {1,0,-1,0}; int dy[] = {0,1,0,-1}; const int INFI = 1<<28; const long long int INFL = 1LL<<60; const float INFF = 1e+100; const double INFD = 1e+300; const double EPS = 1e-8; const long long int MOD = 1000000007; void solve (); int main () { cout.setf(ios::fixed); cout.precision(10); ios_base::sync_with_stdio(false); solve(); return 0; } void solve () { int x, y; cin >> x >> y; set> s[4]; s[0].insert(P(0, 0)); for (int i = 0; i < 3; i++) { for (auto it = s[i].begin(); it != s[i].end(); it++) { int x = it->first, y = it->second; s[i+1].insert(P(x, y)); s[i+1].insert(P(x-2, y-1)); s[i+1].insert(P(x-2, y+1)); s[i+1].insert(P(x-1, y-2)); s[i+1].insert(P(x-1, y+2)); s[i+1].insert(P(x+1, y-2)); s[i+1].insert(P(x+1, y+2)); s[i+1].insert(P(x+2, y-1)); s[i+1].insert(P(x+2, y+1)); } } if (s[3].find(make_pair(x, y)) == s[3].end()) cout << "NO" << endl; else cout << "YES" << endl; }