#include <iostream>
#include <cmath>
using namespace std;
//функция высчитывает расстояние между двумя координатами, координаты передаются в функцию при вызове
double side(double ax,double bx,double ay,double by,double az,double bz){
return sqrt((bx-ax)*(bx-ax)+(by-ay)*(by-ay)+(bz-az)*(bz-az));
}
int main() {
double ax,ay,az,bx,by,bz,cx,cy,cz;
cin>>ax>>ay>>az>>bx>>by>>bz>>cx>>cy>>cz;
double a=side(bx,ax,by,ay,bz,az);
double b=side(cx,ax,cy,ay,cz,az);
double c=side(bx,cx,by,cy,bz,cz);
double p=(a+b+c)/2;
double s=sqrt(p*(p-a)*(p-b)*(p-c));
cout<<s;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7Ci8v0YTRg9C90LrRhtC40Y8g0LLRi9GB0YfQuNGC0YvQstCw0LXRgiDRgNCw0YHRgdGC0L7Rj9C90LjQtSDQvNC10LbQtNGDINC00LLRg9C80Y8g0LrQvtC+0YDQtNC40L3QsNGC0LDQvNC4LCDQutC+0L7RgNC00LjQvdCw0YLRiyDQv9C10YDQtdC00LDRjtGC0YHRjyDQsiDRhNGD0L3QutGG0LjRjiDQv9GA0Lgg0LLRi9C30L7QstC1CmRvdWJsZSBzaWRlKGRvdWJsZSBheCxkb3VibGUgYngsZG91YmxlIGF5LGRvdWJsZSBieSxkb3VibGUgYXosZG91YmxlIGJ6KXsKCXJldHVybiBzcXJ0KChieC1heCkqKGJ4LWF4KSsoYnktYXkpKihieS1heSkrKGJ6LWF6KSooYnotYXopKTsKfQppbnQgbWFpbigpIHsKCWRvdWJsZSBheCxheSxheixieCxieSxieixjeCxjeSxjejsKCWNpbj4+YXg+PmF5Pj5hej4+Yng+PmJ5Pj5iej4+Y3g+PmN5Pj5jejsKCWRvdWJsZSBhPXNpZGUoYngsYXgsYnksYXksYnosYXopOwoJZG91YmxlIGI9c2lkZShjeCxheCxjeSxheSxjeixheik7Cglkb3VibGUgYz1zaWRlKGJ4LGN4LGJ5LGN5LGJ6LGN6KTsKCWRvdWJsZSBwPShhK2IrYykvMjsKCWRvdWJsZSBzPXNxcnQocCoocC1hKSoocC1iKSoocC1jKSk7Cgljb3V0PDxzOwoJcmV0dXJuIDA7Cn0=