#include using lint = long long; bool dfs(lint a, lint b) { if (a == 0 && b == 0) return true; if (a % 2 == 0 && b > 0 && dfs(a / 2, b - 1)) return true; if (a > 0 && b % 2 == 0 && dfs(a - 1, b % 2)) return true; return false; } void solve() { lint a, b; std::cin >> a >> b; std::cout << (dfs(a, b) ? "Yes" : "No") << "\n"; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }