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