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