Green spot#42

Green spot

1 second
64 megabytes
Medium

Two triangular projectors cast two spots on a wall—one blue, the other yellow. The intersection of these two spots forms a green spot. Determine the number of vertices and the area of the green spot.

Input

The first line contains the coordinates of the first spot: x_{11},\ y_{11},\ x_{12},\ y_{12},\ x_{13},\ y_{13}. The second line contains the coordinates of the second spot: x_{21},\ y_{21},\ x_{22},\ y_{22},\ x_{23},\ y_{23}. It is guaranteed that -100 \leq x_i,\ y_i \leq 100.

Output

Print two numbers in one line: the number of vertices of the green spot, and its area, separated by a space. The area must be rounded to exactly two digits after the decimal point.

Examples

Example 1

Loading
Loading