#include using namespace std; int main() { int64_t a, b; cin >> a >> b; queue> q; q.emplace(a, b); while (!q.empty()) { int64_t x = q.front().first, y = q.front().second; q.pop(); if (x == 0 || y == 0) { cout << "Yes" << endl; return 0; } if (x % 2 == 0) { q.emplace(x / 2, y - 1); } if (y % 2 == 0) { q.emplace(x - 1, y / 2); } } cout << "No" << endl; return 0; }