a, b = map(int, input().split()) print(((b - a) ** 3) / 6)