#include #include #include #include #include #include #include #include #include #pragma GCC optimize("O3") #pragma comment(linker, "STACK:36777216") using namespace std; using i64 = int64_t; constexpr i64 mod = 1e9 + 7; using vi = vector; using vvi = vector; using ii = pair; using vii = vector; bool dfs(i64 x, i64 y) { if (x < 0 || y < 0) return false; if (x == 0 || y == 0) return true; if (x % 2 == 0 && y % 2 == 0) { return dfs(x / 2, y - 1) || dfs(x - 1, y / 2); } if (y % 2 == 0) { return dfs(x - 1, y / 2); } if (x % 2 == 0) { return dfs(x / 2, y - 1); } return false; } int main() { i64 a, b; cin >> a >> b; cout << (dfs(a, b) ? "Yes" : "No") << endl; a = 1; }