Problems

# Diagonals

# Diagonals

Four points**A***(***x _{1}**

*;*

**y**

_{1}*)*,

**B**

*(*

**x**

_{2}*;*

**y**

_{2}*)*,

**C**

*(*

**x**

_{3}*;*

**y**

_{3}*)*,

**D**

*(*

**x**

_{4}*;*

**y**

_{4}*)*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 x and y coordinates of successive peaks parallelogram, respectively points **A**, **B**, **C** and **D**. All numbers in absolute value does not exceed **100**.

**Output**

The first line print after a gap of **x** and **y** coordinates of the point **O**, in the second - print the length of the diagonal **AC**and through a gap - **BD**. The results lead to three decimal.

Input example #1

4 6 11 6 10 2 3 2

Output example #1

7.000 4.000 7.211 8.944