Easy
Total Marks
Read n lines of
subject mark (n first). Print the total and the subject with the highest mark.Input
n, then n lines.
Output
Two lines.
Sample 1
Input
3 math 80 english 75 ict 95
Output
250 ict
Sample 2
Input
1 bangla 60
Output
60 bangla
Output appears here