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