Meeting place can not be changed
Easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Given points on a plane. Find two points such that the distance between them is minimal.
Input
The first line contains an integer — the number of points. Each of the following lines contains two integers and — the coordinates of a point. It is guaranteed that all points are distinct.
Output
Print the coordinates of the two points with the minimal distance between them. Print the coordinates of each point on a separate line.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 10%