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