figure = input() figure = figure.split() radius = float(figure[0]) hypotenuse = float(figure[1]) ans = 0 ans = (hypotenuse * hypotenuse - radius * radius) ** 0.5 print(round(ans, 12))