#include #include #include signed main(){ double p,q; std::cin>>p>>q; double loweq = 1.0; double high = 1e11; int loop = 10000; while(loop--){ double n = (loweq+high)/2.0; if(n<(p+q*n*std::log2(n))/n)loweq = n; else high = n; } std::cout<