Problems
Perimeter and area of triangle
Perimeter and area of triangle
Six real numbers x_1, y_1, x_2, y_2, x_3, y_3 — the coordinates of triangle vertices are given. Find the perimeter and the area of a triangle.
Input data
Six real numbers — the coordinates of triangle vertices are given: x_1, y_1, x_2, y_2, x_3, y_3. The numbers do not exceed 100 by absolute value.
Output data
Print the perimeter and the area of a triangle with 4 decimal digits.
Examples
Input example #1
3 2 7 6.5 10 1
Output example #1
19.3568 17.7500