#include using namespace std; long long A, B; bool solve(long long p, long long q) { if (p > A || q > B) return false; if (p == A && q == B) return true; long long L1 = p, L2 = q; while (L1 > A) L1 /= 2; while (L2 > B) L2 /= 2; if (A - L1 >= 100 || B - L1 >= 100) return false; bool r1 = solve(p * 2, q + 1); bool r2 = solve(p + 1, q * 2); if (r1 == true || r2 == true) return true; return false; } int main() { cin >> A >> B; bool T = solve(0, 0); if (T == true) cout << "Yes" << endl; else cout << "No" << endl; return 0; }