Consider points in a 2D plane. You are required to compute the square of the minimum distance between any two of the first two points, then the first three points, and so on until the point.
Input
The first line will contain the integer ().
The following lines will each contain two integers, the two coordinates of each point.
where and are the coordinates.
For tests worth points it is guaranteed that .
Output
You will print lines, each representing the square of the minimum distance between the first two, then three then four points and so on.
Example
stdin
4
1 2
3 6
9 10
1 1
stdout
20
20
1
Explanation
The square of the distance between the first two points is .
The square of the distance between the third and first point is , and between the third and second point is , so the minimum distance remains .
The distance between the fourth and first point is .