#include #include #include #include #include #include #include #include #include #include #include using namespace std; using ll = long long; int main(){ double a, b, ans; cin >> a >> b; ans = (double)pow(b - a, 3) / 6.0; printf("%.6f\n", ans); return 0; }