PROGRAMMING:Ranking of results
###Description
Give the transcript of a course in the class. Please sort the transcript according to the grade from high to low. If you have the same score, the name will be in the first place.
###Input
The first line n (0 < n < 20) indicates the number of students in the class;
The next N lines, each line of each student's name and his grade, separated by a single space. The name only contains letters and the length does not exceed 20. The score is a non negative integer not greater than 100.
###Output
Sort and output the report card according to the score from high to low. Each line contains name and score, with a space between them.
###Sample input
```in
four
Kitty 80
Hanmeimei 90
Joey 92
Tim 28
```
###Sample output
```out
Joey 92
Hanmeimei 90
Kitty 80
Tim 28
```
###Title Source
http://noi.openjudge.cn/ch0110/03/
###Tips
If you use structures, note:
1. When there are array (pointer) members in the structure, the copy problem between the structure variables (deep copy).
2. Please pay attention to the order principle of this question< br>
answer:If there is no answer, please comment
Give the transcript of a course in the class. Please sort the transcript according to the grade from high to low. If you have the same score, the name will be in the first place.
###Input
The first line n (0 < n < 20) indicates the number of students in the class;
The next N lines, each line of each student's name and his grade, separated by a single space. The name only contains letters and the length does not exceed 20. The score is a non negative integer not greater than 100.
###Output
Sort and output the report card according to the score from high to low. Each line contains name and score, with a space between them.
###Sample input
```in
four
Kitty 80
Hanmeimei 90
Joey 92
Tim 28
```
###Sample output
```out
Joey 92
Hanmeimei 90
Kitty 80
Tim 28
```
###Title Source
http://noi.openjudge.cn/ch0110/03/
###Tips
If you use structures, note:
1. When there are array (pointer) members in the structure, the copy problem between the structure variables (deep copy).
2. Please pay attention to the order principle of this question< br>
answer:If there is no answer, please comment