#include using namespace std; using ll = long long int; using lc = complex; int main(void) { constexpr ll MOD = 1e9 + 7; constexpr double PI = acos(-1); cout << fixed << setprecision(32); cin.tie(0); ios::sync_with_stdio(false); double p, q; cin >> p >> q; double ok = 1, ng = 1e20; for(ll i=0; i<10000; i++) { double mid = (ok + ng) / 2; (mid * mid < p + q * mid * logl(mid) / logl(2) ? ok : ng) = mid; } cout << ok << endl; }