P,Q = map(int, input().split()) import math l = 1 r = 10**18 for _ in range(200): m = (l+r)/2 if m**2 <= P+Q*m*math.log2(m): l = m else: r = m print(l)