#include #include #include #include using namespace std; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); uint32_t P, Q; cin >> P >> Q; auto l = 1.0, r = 1e18; while (r - l >= 1e-5) { const auto c = (l + r) / 2; if (c * c <= P + Q * c * log2(c)) l = c; else r = c; } cout << fixed << setprecision(10) << l << '\n'; return 0; }