a, b = map(int, input().split()) menseki = 0 for x in range(10000 * a, 10000 * b, 1): menseki += (x - 10000 * a) * (10000 * b - x) print(menseki / 1000000000000)