Width of a Point Set

No attempts yetTime limit2sMemory limit512 MB

Problem

Consider a set SS of nn points in the plane. The width ww of SS is the minimum distance between two parallel lines that enclose SS. Figure 1 shows an example.

Figure 1: The width ww of a set of three points.

There SS consists of the n=3n = 3 points (0,0)(0, 0), (0,3)(0, 3) and (3,0)(3, 0). The width is realized by the two lines \ell and \ell', whose distance is w=32/22.12w = 3\sqrt{2}/2 \simeq 2.12. In this task you are given a set of points and you have to compute the integer part of w2w^2 and print it. For Figure 1, w=32/2w = 3\sqrt{2}/2, so w2=4.5w^2 = 4.5, and you print the integer part of 4.54.5, which is 44.

Here is a formula that helps. Let A=(xa,ya)A = (x_a, y_a), B=(xb,yb)B = (x_b, y_b) and C=(xc,yc)C = (x_c, y_c) be three points. The height hh of the triangle ABCABC (see Figure 2) is

h=σ(xaxc)(ybyc)(xbxc)(yayc)(xaxb)2+(yayb)2h = \sigma \frac{(x_a - x_c)(y_b - y_c) - (x_b - x_c)(y_a - y_c)}{\sqrt{(x_a - x_b)^2 + (y_a - y_b)^2}}

where σ=1\sigma = 1 if ABCABC is counterclockwise (as in Figure 2) and σ=1\sigma = -1 if ABCABC is clockwise.

Figure 2: Triangle ABCABC.

If all points of SS lie on one straight line, the width ww is zero.

Input

The first line contains the integer nn, the number of points in SS. Each of the next nn lines contains the xx coordinate and the yy coordinate of one point, separated by a single space.

The coordinates are integers between 0 and 199 inclusive. There are at most 100000 points, and the same point may appear several times.

Output

Print the integer part of w2w^2.