eolymp
bolt
Try our new interface for solving problems
Problems

Lots of Triangles

Lots of Triangles

Farmer John is thinking of selling some of his land to earn a bit of extra income. His property contains n trees, each described by a point in the 2D plane, no three of which are collinear. FJ is thinking about selling triangular lots of land defined by having trees at their vertices; there are of course L = n * (n - 1) * (n - 2) / 6 such lots he can consider, based on all possible triples of trees on his property.

A triangular lot has value v if it contains exactly v trees in its interior (the trees on the corners do not count, and note that there are no trees on the boundaries since no three trees are collinear). For every v = 0 .. n3, please help FJ determine how many of his L potential lots have value v.

Input

The first line contains n (3n300). The following n lines contain the x and y coordinates of a single tree; these are both integers in the range 0 .. 106.

Output

Output n2 lines, where line i contains a count of the number of lots having value i1.

Time limit 1 second
Memory limit 128 MiB
Input example #1
7
3 6
17 15
13 15
6 12
9 1
2 7
10 19
Output example #1
28
6
1
0
0
Source 2016 USACO December, Platinum