#include #include #include #include using namespace std; using i64 = long long; bool f(i64 a, i64 b) { queue> que; que.emplace(a, b); while(!que.empty()) { i64 x, y; tie(x, y) = que.front(); que.pop(); if(x == 0 || y == 0) { return true; } if(x % 2 == 0) { que.emplace(x/2, y-1); } if(y % 2 == 0) { que.emplace(x-1, y/2); } } return false; } int main(void) { i64 a, b; scanf("%lld%lld", &a, &b); bool ok = f(a, b); puts(ok ? "Yes" : "No"); return 0; }