from math import log2 p, q = map(int, input().split()) l, r = 0, 10 ** 18 for i in range(100): m = (l + r) / 2 if m ** 2 <= p + q * m * log2(m): l = m else: r = m print(l)