#include <cstdio>
#include <cmath>

int main (void)
{
 volatile float a, b, c, p, s, x1, x2, x3, y1, y2, y3;
 x1 = 0.0;
 y1 = 0.0;
 x2 = 2.0;
 y2 = 3.0;
 x3 = 3.0;
 y3 = 5.0;
 a = hypot (y2 - y1, x2 - x1);
 b = hypot (y3 - y2, x3 - x2);
 c = hypot (y1 - y3, x1 - x3);
 p = (a + b + c) * 0.5;
 s = p * (p - a) * (p - b) * (p - c);
 s = sqrt (s);
 printf ("%.12f %.12f %.12f %.12f\n%.12f\n", a, b, c, p, s);
 return 0;
}
