r, d = [eval(i) for i in input().strip().split(' ')] print((d**2 - r**2)**0.5)