# verification-helper: PROBLEM https://yukicoder.me/problems/no/1009 a, b = map(int, input().split()) print((b - a) ** 3 / 6)