a, b = map(int, input().split()) sm = 0 for i in range(a, b): for j in range(10000): x = i + j * 0.0001 sm += abs(x**2 - a * x - b * x + a * b) / 10000 print(sm)