Square by Two Vertices#6344

Square by Two Vertices

1 second
64 megabytes
Very easy

On a plane, a square is defined by the coordinates of two of its opposite vertices.

Your task is to determine the coordinates of the remaining two vertices of the square.

Input

The program will read from standard input (keyboard) two lines. The first line contains the coordinates of one vertex of the square, A_x and A_y. The second line contains the coordinates of the opposite vertex of the square, C_x and C_y. All numbers are real and do not exceed 10^6 in absolute value.

Output

The program should output to standard output (screen) two lines, each containing two space-separated numbers: B_x B_y, and D_x D_y. These represent the coordinates of the remaining two vertices of the square. The order of the output should ensure that , , , are listed in a counterclockwise sequence, with each coordinate rounded to decimal places.

Examples

Example 1

Loading
Loading