Competitions

# Week 8: December 28 - January 10. Functions. Part 1

# Perimeter and area of triangle

The real numbers `x`

, _{1}`y`

, _{1}`x`

, _{2}`y`

, _{2}`x`

, _{3}`y`

- the coordinates of triangle vertices are given. Find the perimeter and the area of a triangle._{3}

#### Input

In one line the coordinates of triangle vertices are given: **6** numbers `x`

, _{1}`y`

, _{1}`x`

, _{2}`y`

, _{2}`x`

, _{3}`y`

that do not exceed _{3}**100** by absolute value.

#### Output

Print in one line the perimeter and the area of a triangle. Print the answer with **4** decimal digits.

Input example #1

3 2 7 6.5 10 1

Output example #1

19.3568 17.7500