from math import log2 P, Q = map(int, input().split()) ok = 1 ng = 1e18 for _ in range(1024): N = (ok + ng) / 2 if N * N <= Q * log2(N) * N + P + 0.000001: ok = N else: ng = N print(ok)