eolymp
bolt
Try our new interface for solving problems
Problems

Four Square

Four Square

\includegraphics{https://static.e-olymp.com/content/18/18b5ef5a89feee78690d00d52bc51afc1b57d630.jpg} Direct \textbf{x = a} and \textbf{y = b} divide the quadrilateral with vertices \textbf{A}(\textbf{0}, \textbf{0}), \textbf{B}(\textbf{0}; \textbf{y1}), \textbf{C}(\textbf{x1}; \textbf{y1}), \textbf{D}(\textbf{x1}; \textbf{0}) into four parts. Determine the square formed by the figures. \InputFile In a single line through the space defined four integers: \textbf{a}, \textbf{b}, \textbf{x1} and \textbf{y1}. All input data for the module does not exceed \textbf{100}. \OutputFile Print the first area of a quadrilateral \textbf{APQM}, then through the gap - \textbf{PBOQ}, then through the gap - \textbf{QOCK}, and, finally, through the gap - \textbf{MQKD}. The results lead to three decimal.
Time limit 1 second
Memory limit 64 MiB
Input example #1
3 2 9 6

Output example #1
6.000 12.000 24.000 12.000
Input example #2
-13 2 -9 6
Output example #2
26.000 52.000 16.000 8.000