a , b = [int(x) for x in input().split()] print(((b-a)**3)/6)