import sys def input(): return sys.stdin.readline().rstrip('\n') def main(): a, b = map(int, input().split()) print((b-a)**3/6) if __name__ == '__main__': main()