#include using namespace std; int main() { int64_t a, b; cin >> a >> b; set> st; st.insert({0, 0}); while (!st.empty()) { set> next; for (auto &p : st) { if (p.first == a && p.second == b) { cout << "Yes" << endl; return 0; } if (a < p.first || b < p.second) { continue; } next.insert({2 * p.first, p.second + 1}); next.insert({p.first + 1, 2 * p.second}); } swap(st, next); } cout << "No" << endl; return 0; }