Several matches have been played in a football league. Compute the league ranking after those matches.
For each match, the winning team earns 3 points, each team earns 1 point for a draw, and the losing team earns 0 points.
The ranking is determined by these rules.
Write a program that outputs the final ranking of the league.
The first line contains two integers N and K, the number of teams and the number of played matches. 1 <= N <= 100 and 1 <= K <= 1000. Teams are numbered from 1 to N.
Each of the next K lines describes one match in the form 'A B C:D'. This means that team A played team B, team A scored C goals, and team B scored D goals. 0 <= C, D <= 9.
Output one line containing the team numbers from the highest-ranked team to the lowest-ranked team, separated by spaces.