a,b = map(int,input().split()) if a==b: print(0) exit() ans = 0 K = 200000 w = (b-a)/K for i in range(K): x = a + i*w ans -= w * (x-a)*(x-b) print(ans)