def f(x): return (x-a)*(x-b) a,b = map(int,input().split()) N = 100000 step = (b-a)/N ans = 0 for i in range(N): x = a + step*i ans += step*abs(f(x)) print(ans)