#include using namespace std; using ll = long double; constexpr char newl = '\n'; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); ll p, q; cin >> p >> q; ll ok = 1, ng = 1e18; for (int i = 0; i < 1000; i++) { ll mid = (ok + ng) / 2; (mid * mid <= p + q * mid * log2(mid) ? ok : ng) = mid; } cout << fixed << setprecision(20) << ok << newl; return 0; }