a, b = map(int, input().split()) # 定積分 ans = (1 / 6) * (b - a) ** 3 print(ans)