def main(): from sys import stdin readline=stdin.readline #s = input() a, b = map(int, readline().split()) ans = (b-a)**3/6 print(ans) main()