r,d = list(map(float,input().split())) ans = (d**2-r**2)**0.5 print(ans)