a,b = map(int,input().split())
S = ((b-a)**3) / 6
print(S)