def ar(a,b,x): return (-1/3)*x**3+(a+b)/2*x**2-a*b*x a,b = map(int,input().split()) print(ar(a,b,b)-ar(a,b,a))