loves to stare at computers. Especially Mac computers, with their beautiful touch bars.
He is given named computers, each with a rating quality from to . wants to find out which computer has the best rating quality, and has asked you to write a program to help him!
If there are multiple computers with the highest rating quality, choose the one that you encountered last.
Input Specifications
The first line will contain an integer .
The next lines will contain a single world followed by an integer , the name of the computer and the rating quality respectively.
Output Specifications
The output should contain only string, the name of the computer with the best rating quality.
Sample Input 1
4
Zoidberg 5
Ned 4
iBook 9
Buttons 2
Sample Output 1
iBook
Comments