import Foundation var n = readLine()?.split(separator: " ").map{Double($0)!} print(pow((n![1] - n![0]),3.0) / 6.0)