#include using namespace std; int main(){ cin.tie(0); ios::sync_with_stdio(false); double a,b; cin >> a >> b; b-=a; cout << b*b*b/6 << '\n'; }