a, b = map(int, input().split()) def f(x): return (x - a) * (x - b) alpha = 10 ** (-4) ans = 0 x = a while x < b: ans += abs(f(x)) * alpha x += alpha print(ans)