#!/usr/bin/env python3 import sys input = sys.stdin.readline a, b = map(int, input().split()) ans = (b - a)**3 / 6.0 print(ans)