Diagonals
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Four points , , , are the vertices of parallelogram. Determine the length of the diagonals and find the coordinates of their intersection.
Input
In 4-lines through the gap defined and coordinates of successive peaks parallelogram, respectively points , , and . All numbers in absolute value does not exceed .
Output
The first line print after a gap of and coordinates of the point , in the second - print the length of the diagonal and through a gap - . The results lead to three decimal.
Examples
Input #1
Answer #1
Input #10
Answer #10
Submissions 11K
Acceptance rate 43%