def main(): a, b = map(int, input().split()) ans = 1 / 6 * (b - a) ** 3 print(ans) if __name__ == "__main__": main()