#include using namespace std; #ifdef LOCAL #include "settings/debug.cpp" #else #define Debug(...) void(0) #endif #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using ull = unsigned long long; int main() { cin.tie(nullptr)->sync_with_stdio(false); constexpr array dx = { -2, -2, -1, -1, 1, 1, 2, 2 }; constexpr array dy = { -1, 1, -2, 2, -2, 2, -1, 1 }; set> cand = { { 0, 0 } }; rep(_, 3) { set> nxt; for (const auto& [x, y] : cand) { rep(i, 8) nxt.insert({ x + dx[i], y + dy[i] }); } cand.merge(nxt); } int x, y; cin >> x >> y; cout << (cand.contains({ x, y }) ? "YES" : "NO") << '\n'; return 0; }