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