Rectangle
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 256 megabytes
To construct a rectangle with sides parallel to the coordinate axes, you need the coordinates of two opposite vertices. Your task is to write a program that calculates the coordinates of the other two vertices of the rectangle.
Input
The input consists of a single line containing four integers , , , (-, , ), which represent the coordinates of the given opposite vertices.
Output
Output four integers , , , , which are the coordinates of the other two opposite vertices. The coordinates should be printed in the order of the left vertex first, followed by the right vertex.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 215
Acceptance rate 44%