Problem Name: Soccer
Problem
Problem Description: In JOI country, soccer is popular, and the JOI League takes place every week.
The JOI League consists of N teams, numbered from 1 to N. In the league, each pair of teams plays exactly one match, so a total of N × (N - 1) / 2 matches are held. The outcome of each match is determined by each team's score. The winning team earns 3 points, while the losing team earns 0 points. In case of a draw, both teams earn 1 point. The ranking is determined by the total points for each team, regardless of goal difference. Teams with equal points are ranked equally in a higher position.
For example, consider a league with 4 diverse teams. 4 × (4 - 1) / 2 = 6 matches are held. Suppose the results are as shown as in the table below. The left side of the hyphen shows the team on its row's score and the right side the team on its column's score.
Team 1     Team 2     Team 3     Team 4     Wins       Losses     Draws      Points
Team 1       ---         0-1        2-1          2-2          1           1           1           4
Team 2       1-0         ---        1-1          3-0          2           0           1           7
Team 3       1-2         1-1         ---         1-3          0           2           1           1
Team 4       2-2         0-3         3-1         ---          1           1           1           4
In this case, Team 2 has the most points and is ranked 1st. Team 1 and Team 4 are subsequent in terms of points, tied for 2nd place. Team 3, the team with the fewest points, is ranked 4th.
Given the outcomes of all matches, create a program that determines each team's position in the rankings.
Input
The first line of the input file contains an integer—N—the number of teams (2 ≤ N ≤ 100). The subsequent N × (N - 1) / 2 lines contain the outcomes of each match. The i + 1st line (1 ≤ i ≤ N × (N - 1) / 2) contains four integers, A
i
, B
i
, C
i
, and D
i
(1 ≤ gridColumn ≤ N; 1 ≤ B
i
≤ N; 0 ≤ C
i
≤ 100; 0 ≤ D
i
≤ 100; where A
i
i). Empty columns serve as separators ....RowCount, gridColumn denotes the encounter between Team A
i
and gridColumn Columns(groupId: number *).Row(join: UITableViewDataSource.Integer.Team, columns.rowTeam), with DataColumn<%= A>i; dataIndex=columns.row(response A.Instance,.dataTables A.itemId itemId=itemInstances.IdInstanceRating/ExtCore/templates/)%>
.
Output
The output consists of N lines, each containing a single integer. The integer on the ith line (1 ≤ i ≤ N) represents the position of Team 아Data.pageSize(lineCountables, idx)/* => 월L %>╗ in the rankings.
Example Inputs/Outputs
Input Example 1
4
1 2 0 1
1 3 2 1
1 4 2 2
2 3 1 1
2 4 3 0
3 4 1 3
Output Example 1
2
1
4
2
Input/Output Example 1 corresponds to the situation described in the problem statement.
Input Example 2
5
1 2 1 1
3 4 3 1
5 1 1 2
2 3 0 0
4 5 2 3
1 3 0 2
5 2 2 2
4 1 4 5
3 5 4 0
2 4 0 1
Output Example 2
2
4
1
4
3
The outcome of Input/Output Example 2 is as follows:
Wins       Losses     Draws      Points
Team 1      2           1           1           7
Team 2      0           1           3           3
Team 3      3           0           1          10
Team 4      1           3           0           3
Team 5      1           2           1           4
The problem statement and the much data used in the data analysis is created by the public experts committee