#include using namespace std; int main(){ double a, b; cin >> a >> b; cout << fixed << setprecision(7) << pow((b - a), 3) / 6 << endl; }