eolymp
bolt
Try our new interface for solving problems
Problems

Green spot

Green spot

\includegraphics{https://static.e-olymp.com/content/4b/4b21a2aa39a5d39062f13cce7cd5ac52f50f81b2.jpg} Two triangular projectors form two spots on a wall, one of blue, and second of yellow colour. Find the area of a green spot that is obtained with superposition of two spots and the form (number of vertices) of a green spot. \InputFile The first line contains the coordinates of the first spot: \textbf{x_11, y_11, x_12, y_12, x_13, y_13}, and the second line contains the same vertex coordinates of the second spot \textbf{x_21, y_21, x_22, y_22, x_23, y_23}. It is know that \textbf{-100 ≤ x_i, y_i ≤ 100}. \OutputFile Print \textbf{2} numbers, separated with a blank, in one line: the number of vertices in a green spot and its area with two digits after the decimal point.
Time limit 1 second
Memory limit 64 MiB
Input example #1
2 2 2 6 8 4
5 4 11 6 11 2
Output example #1
4 1.50
Author Анатолий Присяжнюк