#include #include using namespace std; long long cnt = 0; bool solve(long long n, long long m) { cnt++; if (n == 0 || m == 0) return true; if (n % 2 == 1 && m % 2 == 1) return false; if (n % 2 == 1) return solve(n - 1, m / 2); if (m % 2 == 1) return solve(n / 2, m - 1); return solve(n - 1, m / 2) || solve(n / 2, m - 1); } int main() { long long A, B; cin >> A >> B; cout << (solve(A, B) ? "Yes" : "No") << endl; return 0; }