r, d = map(float, input().split()) print('{0:.7f}'.format((d ** 2 - r ** 2) ** 0.50))