a, b = map(int, input().split()) ans = 0 if a < b: dx = 1 / 10000 x = a while x < b: ans += abs((x - a) * (x - b)) * dx x += dx print(ans)