from math import log2 eps = 10 ** -6 p, q = map(int, input().split()) l, r = 1, 10 ** 15 while r - l > eps: m = (l + r) / 2 if m ** 2 <= p + q * m * log2(m): l = m else: r = m print(l)