#include using namespace std; using int64 = long long; using uint64 = unsigned long long; map, bool> memo; int64 f(int64 A, int64 B) { if (A < B) swap(A, B); if (memo.count({A, B})) { return memo[{A, B}]; } else if (B == 0) { return (memo[{A, B}] = true); } bool res = false; if (A % 2 == 0 and B - 1 >= 0) { res = res || f(A / 2, B - 1); } if (B % 2 == 0 and A - 1 >= 0) { res = res || f(A - 1, B / 2); } return (memo[{A, B}] = res); } int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int64 A, B; cin >> A >> B; if (f(A, B)) cout << "Yes" << endl; else cout << "No" << endl; return 0; }