#include using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); double p, q; cin >> p >> q; double l = 0, r = 1e18; for (int i = 0; i < 200; i++) { double mid = (l + r) / 2; if (mid * mid < p + q * mid * log2(mid)) l = mid; else r = mid; } cout << fixed << setprecision(10) << l << '\n'; }