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