Construct a square given two points, which are opposite vertices of the square.
The program receives the coordinates of two opposite vertices of the square as input. First, the coordinates of the first vertex are provided, followed by the coordinates of the second vertex. Each coordinate is a pair of integers, with absolute values not exceeding 10^4.
Output real numbers, representing the coordinates of all four vertices of the square in traversal order.
Example 1