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