Triangles

No attempts yetTime limit3sMemory limit128 MB

Problem

nn pairwise distinct points in the plane are given (n3n \ge 3). Among them, the number of triangles whose vertices are three distinct points is n(n1)(n2)6\frac{n(n-1)(n-2)}{6} (including degenerate triangles, i.e. ones whose three vertices are collinear).

We want to compute the sum of the areas of all such triangles. A region that belongs to several triangles is counted once for each triangle it belongs to. The area of a degenerate triangle (with collinear vertices) is taken to be 00.

Write a program that reads the coordinates of the points from standard input, computes the sum of the areas of all triangles whose vertices are among the given points, and prints the result to standard output.

Input

The first line contains one integer nn (3n3,0003 \le n \le 3{,}000), the number of points. Each of the next nn lines contains two integers xix_i and yiy_i (0xi,yi10,0000 \le x_i, y_i \le 10{,}000) separated by a single space, the coordinates of the ii-th point. No coordinate pair (xi,yi)(x_i, y_i) appears more than once.

Output

Print the sum of the areas of all the triangles, with exactly one digit after the decimal point. (Because all coordinates are integers, this sum is always a multiple of 0.50.5 and is represented exactly with one decimal digit.)

Hint