"Testing can only prove the presence of bugs, not their absence."
Edsger Dijkstra
The ACM group of SBU has decided to develop a new application for creating the scoreboard for the next contest. This application will be used by the automated test system to evaluate your contests! Your task is to write a program for the automated test system which receives a list of contest submissions and generates the final scoreboard.
Teams are ranked by the number of problems solved. Teams solving the same number of problems are further ranked by total time. The total time is the sum of the time spent solving each problem. The time for a solved problem is the time from the beginning of the contest to the first accepted submission for that problem, plus twenty penalty minutes for each failed attempt on that problem. Problems not solved do not contribute to the total time. If two teams have the same number of solved problems and total time, the team with the earlier time of the last accepted submission ranks higher.
For example, consider two teams "KoRoVa" and "D&C", each solving two problems. Team KoRoVa submitted accepted solutions for A and B at 1:00 and 2:45 after the contest started. They attempted C, but did not solve it. Team D&C submitted solutions to A and C at 1:20 and 2:00 and had one failed attempt for C. The total times are 1:00+2:45=3:45 for KoRoVa and 1:20+2:00+0:20=3:40 for D&C. The result ranks D&C ahead.
Each submission result determined by the automated judge is one of these messages:
Accepted AC
Compile Error CE
Time Limit Exceeded TLE
Run Time Error RTE
Wrong Answer WA
The input is a list of automated judge responses. Each response is given in a line containing four fields, separated by slashes. The first field is the team name (from to characters). The second field is the problem (a single character from to ). The third field is the submission time, and the fourth field is the result message from the automated system for that submission. There are no more than teams in the contest.
Print the final scoreboard in the exact format shown in the example below. The column widths are:
Rank :
Team Name :
Problem ID :
Solved :
Time :
Take note of the spacing between columns. All data is left-aligned in its column. See the sample output for details.

Example 1