A, B = map(int, input().split()) def f(x): return (x-A)*(x-B) N = 10**5 ans = 0 for i in range(N): ans += (B-A)/N * abs(f(A+(B-A)/N*i)) print(ans)