Top Learner (Array of Records)

MediumGrade 12

Read a list of learners (name + mark) into an array of records, then find and print the learner with the highest mark. If there's a tie, print whichever one appears first.

Input / Output

Input: line 1 is N, followed by N lines each "name mark". Output: "name: mark" for the top learner.

Examples

Input

3
Thabo 78
Aisha 92
Sipho 85

Expected Output

Aisha: 92

Input

2
Zola 60
Ben 60

Expected Output

Zola: 60

+ 2 hidden tests checked on Submit.

Files

Main.pas is the entry point. Add extra units for OOP exercises — they compile together.

Main.pas
Loading...

Run your code to see test results here.