#include #include #include #include #include #include #include using namespace std; using ll = long long; int dfs(ll a, ll b) { if (a == 0 && b == 0) return 1; for (int i = 0; i < 2; i++) { if (a % 2 == 0 && b > 0 && dfs(a / 2, b - 1)) return 1; swap(a, b); } return 0; } int main() { ll a, b; cin >> a >> b; cout << (dfs(a, b) ? "Yes" : "No") << endl; return 0; }