One test case is failing

https://ide.codingblocks.com/s/440331 Can u give me a hint on why one test case is failing

for the input

73
10
Tarun 52
Sanjeet 36
Prateek 47
Pranav 86
Sneha 73
Sohail 4
Jatin 12
Mehak 69
Abhishek 92
Bipin 88

the output should be

Abhishek 92
Bipin 88
Pranav 86
Sneha 73

debug for this