#C12824. Find the Most Populous Country
Find the Most Populous Country
Find the Most Populous Country
You are given information about several countries. Each country comes with a name and a population value, which might be provided as an integer or a string. In some cases, the population value might be missing or cannot be converted properly to an integer. In that case, you should treat the population as 0.
Your task is to determine and output the name of the country with the highest population. If no country is provided (i.e. the input is empty), output an empty string.
Note: The input is read from STDIN and the output should be printed to STDOUT.
inputFormat
The first line contains an integer N which denotes the number of countries. This is followed by 2×N lines. For each country, the first line contains the country name, and the second line contains the population value. If the population information is missing, the string "NONE" will be provided.
outputFormat
Output the name of the country with the highest population. If there is no country provided, output an empty string.
## sample3
USA
331002651
Canada
37742154
China
1439323776
China