#include #define rep(i,n) for(int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main(){ cin.tie(0); ios::sync_with_stdio(0); using ld = long double; ld P,Q; cin >> P >> Q; auto f = [P, Q](ld N) { return N * N <= P + Q * N * log2l(N); }; ld ok = 1, ng = 1e18; rep(_,100) { ld mid = (ok + ng) * 0.5; (f(mid) ? ok : ng) = mid; } cout << fixed << setprecision(20) << ok << endl; }