#include using namespace std; using lint = long long; using pint = pair; using vec = vector; using mat = vector>; #define rep(i, n) for(int i = 0; i < (int)(n); i++) #define all(v) v.begin(), v.end() #define endl "\n" constexpr int MOD = 1000000007; const int INF = 1 << 30; int main() { int a, b; cin >> a >> b; double res = (b - a) * (b - a) * (b - a); res /= 6; cout << fixed << setprecision(10) << res << endl; return 0; }