Quadrants
문제
This problem is about quadrants. What are quadrants? Let us begin with any two perpendicular lines and in the plane . If you subtract the two lines and from the whole plane , you obtain four connected, unbounded regions. Each of the four regions is called a quadrant. Note that the boundary of a quadrant does not belong to itself.
Now, consider a set of points in the plane . We are interested in quadrants defined by the set of points. Specifically, let be the set of quadrants such that the boundary of contains exactly three points of . Each quadrant Q ∈ \mathcal{Q} is called a -quadrant if contains exactly points of in its interior. The figure below shows an example in which the set consists of points (small circles) and you can see a -quadrant Q ∈ \mathcal{Q} (shaded in cyan), whose boundary contains three points p, q, r ∈ P.
Given a set of points as input, write a program that computes the number of -quadrants for every 0 ≤ k ≤ n − 3.
입력
Your program is to read from standard input. The input starts with a line containing a single integer (3 ≤ n ≤ 2\,000), where is the number of points in the input set . In each of the following lines, given are two integers and , both ranging from −10^6 to , inclusively, that represent the - and -coordinates of an input point in . You may assume that no two input points have the same coordinates, that there are no three points in lying in a line, and that there are no two perpendicular lines and in the plane such that | \ell ∩ P| ≥ 2 and |\ell ' ∩ P| ≥ 2.
출력
Your program is to write to standard output. Print exactly n − 2 lines. The -th line of your output for each 1 ≤ i ≤ n − 2 must contain a single integer that represents the number of (i − 1)-quadrants with respect to the input set of points.
예제
예제 1
3 0 0 1 2 -1 4
2
예제 2
4 0 0 1 2 -1 4 -1 1
0 4
예제 3
10 47 20 4 30 3 21 44 12 46 34 18 18 19 50 48 23 22 3 19 22
2 12 20 18 20 30 28 16