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