a,b = map(int, input().split()) def f(x): return -(x-a)*(x-b) S = 0 d = (b-a)/10**5 for i in range(10**5): S += d*f(a+i*d) print(S)