from math import sqrt r,d=map(float,input().split(" ")) print(sqrt(d**2-r**2))