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