# No.735 接線 r, d = [float(s) for s in input().split()] print('{0:.12f}'.format((d ** 2 - r **2) ** 0.5))