A strange game is being played in P.E. class. In the game, students are standing in a line, with the student standing meters away from the school. A ball is dropped on this line at a point meters from the school. Students run towards the ball at a speed of one meter per second, and the first student to reach the ball wins. It is guaranteed that only one student will win. Can you determine which student will win the game?
Constraints
For all test cases:
- Each student's name will not exceed characters.
- All student names are distinct.
- There is only one winner.
Note: You must pass all test cases in order to earn points on this problem.
Input Specification
The first line contains two integers and .
The next lines each contain a string, the name of the student and an integer .
Output Specification
Output the name of the student who will win.
Sample Input
5 10
Alice 2
Bob 7
Carol 8
Dave 13
Eve 17
Sample Output
Carol
Comments