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