Points

Time limit: 1s Memory limit: 256MB Input: Output:

Consider nn 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 nthn^{th} point.

Input

The first line will contain the integer nn (1n1051 ≤ n ≤ 10^5).

The following nn lines will each contain two integers, the two coordinates of each point.

109x,y109−10^9 ≤ x, y ≤ 10^9 where xx and yy are the coordinates.

For tests worth 2020 points it is guaranteed that (1n1 000)(1 ≤ n ≤ 1 \ 000).

Output

You will print n1n - 1 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 ((13)2+(26)2)=20((1 − 3)^2 + (2 − 6)^2) = 20.

The square of the distance between the third and first point is 128128, and between the third and second point is 5252, so the minimum distance remains 2020.

The distance between the fourth and first point is 11.

Log in or sign up to be able to send submissions!