#include using namespace std; int main() { int a,b; cin >> a >> b; int d = b - a; cout << fixed << setprecision(10) << d * d * d / 6.0 << '\n'; }