import math P, Q = map(int, input().split()) x = 1 y = 10 ** 12 while x * (1 + 10 ** (-6)) < y: z = (x + y) / 2 if z ** 2 <= P + Q * z * math.log2(z): x = z else: y = z print(x)