N = 10**5 def f(x, aa, bb): return (x - aa) * (x - bb) a, b = map(int, input().split()) ans = 0 for k in range(N): ans += abs(f(a + (b - a) * k / N, a, b)) * (b - a) / N print(round(ans, 6))