Teacher John likes to let students take exams. There are students in total, and everyone has a score before the exam. John believes that the ranking value of each student should be =1 + the number of students with higher scores than his (her). Due to the large number of students, now I will help Teacher John calculate the ranking value of all students after the exam.
输入格式
The first line is a positive integer , indicating the number of data groups; in each group of data, the first line is a positive integer , and the second line is fractions separated by spaces .
输出格式
For each set of data, output the ranking score after this test, still in the order of input.