#include #include int main(void){ int P, Q; double N = 1, t = 10000; scanf("%d %d", &P, &Q); while(t > 0.000001){ while(N * N <= P + Q * N * log2(N)) N += t; N -= t; t /= 10; } printf("%f", N); return 0; }