#include using namespace std; using ll = long long; using ld = long double; int main() { ld p, q; cin >> p >> q; ld lef = 0, rig = 1e30; for(int i = 0; i < 10000; i++) { ld mid = (lef + rig) / 2; (mid * mid < p + q * mid * log2(mid) ? lef : rig) = mid; } cout << fixed <