import math P,Q=map(int,input().split()) High=10**20 Low=0 for i in range(10**3): Mid=(High + Low)/2 if Mid ** 2 > P + Q * Mid * math.log2(Mid): High = Mid else: Low = Mid print(Mid)