"slim" is a adjective means VERY THIN,or in chinese is "苗條".
Now a slim man called "苗條人" wants to hold a game named "slim game" or called "苗條大賽".
And ten of the most "苗條" contestants will get the cool name like "SLIM KING","SLIM QUEEN","SLIM JACK"...etc.
Now you have to choose 10 contestants who have the maximum BMI!
First line has a integer n, means the number of contestants. n is equal or less than 10000.
each of next n lines,
there is a name of the contestant(the length is equal less than 30)
a integer means the weight(kg) of the contestant(<=1000)
a integer means the height(cm) of the contestant(<=1000)
You have to output the names of 10 contestants who have the maximum BMI with decreasing BMI!
If n is less than 10, please output all the contests' name with decreasing BMI.
|No.||Time Limit (ms)||Memory Limit (KiB)||Output Limit (KiB)|