#pragma GCC optimize("O3") #include #define ll long long #define rep(i,n) for(ll i=0;i<(n);i++) #define pll pair #define pq priority_queue #define pb push_back #define eb emplace_back #define fi first #define se second #define ios ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0); #define lb(c,x) distance(c.begin(),lower_bound(all(c),x)) #define ub(c,x) distance(c.begin(),upper_bound(all(c),x)) using namespace std; template inline bool chmax(T& a,T b){if(a inline bool chmin(T& a,T b){if(a>b){a=b;return 1;}return 0;} const ll INF=1e15; int main(){ double P,Q; cin >> P >> Q; ll times=300; double r=100000.0; double l=1.0; while(times){ double mid=(l+r); if(mid*mid<=Q*mid*log(mid)/log(2.0)+P){ l=mid; } else{ r=mid; } times--; } cout << fixed << setprecision(10); cout << l << endl; return 0; }