#include #include int main() { int gx, gy; std::cin >> gx >> gy; if (0 == gx && 0 == gy) { std::cout << "YES" << std::endl; return 0; } std::vector > v; v.push_back(std::make_pair(0, 0)); for (int j = 0; j < 3; j++){ int size = v.size(); for (int i = 0; i < size; i++) { v.push_back(std::make_pair(v[i].first - 2, v[i].second - 1)); v.push_back(std::make_pair(v[i].first - 2, v[i].second + 1)); v.push_back(std::make_pair(v[i].first - 1, v[i].second - 2)); v.push_back(std::make_pair(v[i].first - 1, v[i].second + 2)); v.push_back(std::make_pair(v[i].first + 1, v[i].second - 2)); v.push_back(std::make_pair(v[i].first + 1, v[i].second + 2)); v.push_back(std::make_pair(v[i].first + 2, v[i].second - 1)); v.push_back(std::make_pair(v[i].first + 2, v[i].second + 1)); } } for (int i = 0; i < v.size(); i++) { if(v[i].first == gx && v[i].second == gy){ std::cout << "YES" << std::endl; return 0; } } std::cout << "NO" << std::endl; return 0; }