#c22102. 稳定排序
稳定排序
Stable Sort
Problem Description
Given positive integers , after sorting them from small to large, output the rank of each number (for equal numbers, the one with the smaller original index comes first).
Input Format
The first line is an integer , the number of values.
The next line contains integers .
Output Format
One line with integers: the answer.
Sample Input
5
3 9 5 3 2
Sample Output
2 5 4 3 1
Constraints
For of the data, and .