#include<iostream>
#include<cmath>
using namespace std;
double x1,y_1,x2,y2,x3,y3,a,b,c,s,t;
int main()
{
scanf("%lf%lf%lf%lf%lf%lf",&x1,&y_1,&x2,&y2,&x3,&y3);
a=sqrt(pow((x1-x2),2)+pow((y_1-y2),2));
b=sqrt(pow((x1-x3),2)+pow((y_1-y3),2));
a=sqrt(pow((x2-x3),2)+pow((y2-y3),2));
s=(a+b+c)/2;
t=sqrt(s*(s-a)*(s-b)*(s-c));
printf("%lf",round(t));
return 0;
}