#include #define int long long using namespace std; bool dfs(int a, int b) { if (a == 0 && b == 0) return true; if (a % 2 && b % 2) return false; if (a % 2 == 0 && b % 2 == 1) return dfs(a / 2, b - 1); if (a % 2 == 1 && b % 2 == 0) return dfs(a - 1, b / 2); return dfs(a / 2, b / 2); } signed main() { int a, b; cin >> a >> b; if (dfs(a, b)) cout << "Yes" << endl; else cout << "No" << endl; return 0; }