#include using namespace std; typedef long long int ll; ll mod = 1000000007; ll r(ll x, ll y) { if (y == 0) return 1; else if (y % 2 == 0) return r(x, y/2) * r(x, y/2) % mod; else return x * r(x, (y-1)/2) % mod * r(x, (y-1)/2) % mod; } int main() { double p, q; cin >> p >> q; double l = 1.0, h = 1000000000.0; double m = (l + h) / 2.0; bool f = 1; while (f) { double L = m * m; double R = p + q * m * log2(m); if (L > R) { h = m; m = (h + l) / 2.0; } else { l = m; m = (h + l) / 2.0; } if (h - l < 0.00000001) f = 0; if (m == 1) break; } printf("%.8lf\n", m); }