#K6506. Highest Grade Student
Highest Grade Student
Highest Grade Student
Given a list of student names and their respective grades, determine the student who achieved the highest grade. In the event of a tie, return the student who appears first in the list.
Formally, if you are given an integer \( N \) representing the number of students and \( N \) pairs (name, grade), where the grade is an integer, your task is to output the name of the student with the maximum grade.
inputFormat
The input is given via standard input (stdin) and has the following format:
- The first line contains an integer \( N \) indicating the number of students.
- Each of the following \( N \) lines contains a student's name (a string without spaces) followed by an integer representing their grade, separated by a space.
outputFormat
Output a single line to standard output (stdout) containing the name of the student with the highest grade.
## sample1
Alice 85
Alice