#include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define llong long long bool isTakahashi(double n, double p, double q) { return n < p / n + q * log2(n); } int main() { double p, q; cin >> p >> q; double lower = 1.0; double upper = 2.0 + 1.0*1e11; rep(i, 100) { double middle = (lower + upper) / 2.0; if(isTakahashi(middle, p, q)) lower = middle; else upper = middle; } printf("%.6f\n", upper); }