#include using namespace std; using int64 = long long; using uint64 = unsigned long long; int64 f(int64 A, int64 B) { if (A < B) swap(A, B); if (B == 0) { return 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 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; }