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