Rectangle
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 256 megabytes
To construct a rectangle, you need the coordinates of two opposite vertices. The sides of the rectangle are aligned with the coordinate axes. Write a program to determine the coordinates of the other two vertices of the rectangle.
Input
The first line contains four integers , , , (-, , ) — these are the coordinates of the given opposite vertices.
Output
Output four integers , , , — the coordinates of the other two vertices, listing the left vertex first, followed by the right vertex.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 1K
Acceptance rate 43%