import sys input = sys.stdin.readline def main(): a, b = map(int, input().split()) f = lambda x: (x-a)*(x-b) d = (b-a) / 10000 for i in range(10000): yield f(a+d*i) * d print(abs(sum(main())))