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