import sys,collections,math;
def Fs(): return [float(x) for x in sys.stdin.readline().split()]
r,d = Fs()
print(math.sqrt(d**2-r**2))