a, b = map(int, input().split()) a, b = max(a, b), min(a, b) print((a ** 2 - b ** 2) ** 0.5)