#include using namespace std; #define int long long int A, B; bool flag = false; bool rec(int a, int b) { if (a > b) swap(a, b); if (a == 0) return true; if (a % 2 == 1 && b % 2 == 1) return false; if (a % 2 == 0 && b % 2 == 0) return rec(a - 1, b / 2) | rec(a / 2, b - 1); if (a % 2 == 0) return rec(a / 2, b - 1); if (b % 2 == 0) return rec(a - 1, b / 2); return 0; } signed main() { cin >> A >> B; if (rec(A, B)) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }