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