#include "bits/stdc++.h" using namespace std; int main() { double A, B; cin >> A >> B; printf("%.12lf\n", (B - A) * (B - A) * (B - A) / 6); }