#include #include using i64 = int64_t; void solve() { i64 a, b; std::cin >> a >> b; auto calc = [&](i64 x) { std::vector v(32); for (int i = 31; i >= 0; i--) { if (x >> i & 1) { v[i] = 1; } } return v; }; auto va = calc(a); auto vb = calc(b); bool ok = true; for (int i = 31; i >= 0; i--) { if (va[i] == 1 && vb[i] == 0) { ok = false; break; } } std::cout << (ok ? "Yes" : "No") << '\n'; } int main() { std::cin.tie(nullptr)->sync_with_stdio(false); solve(); return 0; }