#include using namespace std; using ld = long double; int main(){ cin.tie(nullptr); ios_base::sync_with_stdio(false); ld P, Q; cin >> P >> Q; ld l=1, r=4e10, c; for (int i=0; i<1000; i++){ c = (l+r)/2; if (c <= P/c+Q*log2(c)) l=c; else r=c; } cout << setprecision(18) << l << endl; return 0; }