#include using namespace std; using ll=long long; using Graph=vector>>; #define INF 1000000000000000000 #define MOD 1000000007 int main(){ double P,Q; cin>>P>>Q; double left=1.0; double right=1e12; while(left+1e-61e-6){ double x=(left+right)/2.0; if(x*x-P-Q*x*log2(x)>0){ right=x; }else{ left=x; } } printf("%lf\n",left); }