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