The area of a pyramid#944

The area of a pyramid

1 second
128 megabytes
Very easy

Given a triangular pyramid with vertices A(x_1, y_1, z_1), B(x_2, y_2, z_2), C(x_3, y_3, z_3), and S(x_4, y_4, z_4), find the total surface area of the pyramid.

Input

The coordinates , , and of the pyramid's vertices are given in four lines. All coordinates are integers with absolute values not exceeding .

Output

Print the total surface area of the pyramid, rounded to the nearest tenth.

Examples

Example 1

Loading
Loading