Sort & Search
The results of the Olympiad
n Olympiad participants have unique numbers from 1 to n. As a result of solving problems at the Olympiad, each participant received a score (an integer from 0 to 600). It is known how many points everybody scored.
Print the list of participants in Olympiad in decreasing order of their accumulated points.
The first line contains the number n (0 ≤ n ≤ 101). Then n numbers are given - the number of points for each participant (first number is the points accumulated by participant number 1, second - the points for participant number 2, etc.).
Print n numbers - the numbers of participants in decreasing order of their scores (participants who scored the same number of points should be displayed in decreasing order of their numbers).
5 100 312 0 312 500
5 2 4 1 3