#include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) using ll=long long; using vi = vector; using Graph = vector; using P = pair; const int MOD=(int)1e9+7; const int INF=(int)1e9; const ll LINF=(ll)1e18; int main(){ double a,b; cin >> a >> b; cout << fixed << setprecision(12); cout << pow(b-a,3)/6 << endl; }