x,y = map(float,input().split()) s = (x-y)**3 s = abs(s) ans = s / 6 print(ans)