P, Q = map(int, input().split()) from math import log2 max1 = 10 ** 15 min1 = 1 while max1 - min1 > 10 ** (-6): h = (max1 + min1) / 2 if h < P/h + Q*log2(h): min1 = h else: max1 = h print(min1)