AB = list(map(int,input().split())) A = AB[0] B = AB[1] print((1/6)*(B-A)**3)