def input_int(): return int(input()) def input_ints(): return list(map(int, input().split())) from math import log2 P, Q = input_ints() l = 0 r = 1e9 for _ in range(200): m = (l + r) / 2 if m**2 < P + Q * m * log2(m): l = m else: r = m print(r)