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