PRogram Zif_3_28_j(input,output);
Var x1,x2,x3,y1,y2,y3,p,a,b,c:real;
begin
     read(x1,y1,x2,y2,x3,y3);
     a:=sqrt(sqr(x1-x2)+sqr(y1-y2));
     b:=sqrt(sqr(x3-x2)+sqr(y3-y2));
     c:=sqrt(sqr(x1-x3)+sqr(y1-y3));
     p:=(a+b+c)/2;
     write('s=',sqrt(p*(p-a)*(p-b)*(p-c)):0:5,' P=',p*2:0:5)
end.