Perimeter and area of triangle#925

Perimeter and area of triangle

1 second
128 megabytes
Very easy

Six real numbers x_1, y_1, x_2, y_2, x_3, y_3 are given: the coordinates of the vertices of a triangle.

Find the perimeter and the area of the triangle.

Input

The only line contains six real numbers x_1, y_1, x_2, y_2, x_3, y_3, the coordinates of the triangle's vertices. The absolute value of each number does not exceed .

Output

Print two real numbers: the perimeter and the area of the triangle, separated by a space. Both values must be printed with digits after the decimal point.

Examples

Example 1

Loading
Loading