#Q116. 「一本通 4.1 例 2」数星星 Stars
「一本通 4.1 例 2」数星星 Stars
Description
Original problem from: Ural 1028
There are some stars in the sky, each located at different positions with specific coordinates. A star is said to be of level if there are stars strictly to its lower left (including directly left and directly below).

For example, in the figure above, star is level (since stars are to its lower left), and stars are level . The example has level star, level stars, level star, and level star.
Given the positions of the stars, output the count of stars at each level.
In one sentence Given points, define the level of each point as the number of points strictly to its lower left (including directly left and below). Count how many points exist at each level.
Input Format
The first line contains an integer , the number of stars;
The next lines provide the coordinates of each star, given as two integers ;
No two stars overlap. The stars are given in increasing order of -coordinate. If two stars share the same -coordinate, they are given in increasing order of -coordinate.
Output Format
lines, each containing an integer, representing the count of stars at level , level , level , ..., level .
Sample 1
5
1 1
5 1
7 1
3 3
5 5
1
2
1
1
0
Data Range and Hints
For all data, , .