#c22707. 离散化
离散化
Discretization
Problem Description
You are given numbers .
Output the discretized result: for each , output its rank (1-based) among the distinct values after sorting them in ascending order.
Input Format
The first line contains an integer ().
The next line contains integers ().
Output Format
Output one line containing integers.
Sample Input
5
5 3 5 2 5
Sample Output
3 2 3 1 3