#include using namespace std; #define int long long int A, B; map, int> dp; bool flag = false; bool rec(int x, int y) { if (x > A || y > B) return false; if (x == A && y == B) return flag = true; if (flag) return true; return rec(x * 2, y + 1) || rec(x + 1, y * 2); } signed main() { cin >> A >> B; if (rec(0, 0)) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }