#include <iostream>
#include <iomanip>
using namespace std;
double angle(double a, double b, double c)
{
double ans = (a * a + b * b - c * c) / (2.0 * a * b);
return acos(ans);
}
int main()
{
double a, b, c, d, e, f;
while (cin >> a >> b >> c >> d >> e >> f)
{
double A, B, C, W, V;
A = angle(a, b, d);
B = angle(b, c, f);
C = angle(a, c, e);
W = (A + B + C) / 2.0;
V = a * b * c * sqrt(sin(W) * sin(W - A) * sin(W - B) * sin(W - C));
V /= 3.0;
cout << fixed << setprecision(4) << V << endl;
}
return 0;
}