import java.util.Scanner;
import java.util.TreeSet;
/*
* 题目描述:
* 输入一个数组的值,求出各个值从小到大排序后的次序。
* 输入:
* 输入有多组数据。
* 每组输入的第一个数为数组的长度n(1<=n<=10000),后面的数为数组中的值,以空格分割。
* 输出:
* 各输入的值按从小到大排列的次序(最后一个数字后面没有空格)。
* 样例输入:
* 4
* -3 75 12 -3
* 样例输出:
* 1 3 2 1
*/
public class q1167 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
while(scanner.hasNext()) {
int n = scanner.nextInt();
int[] a = new int[n];
for(int i=0; i<n; i++) {
a[i] = scanner.nextInt();
}
TreeSet s = new TreeSet();
for(int i=0; i<n; i++) {
s.add(a[i]);
}
String str_pre = s.toString();
String str = str_pre.substring(1, str_pre.length()-1);
String[] st = str.split(", ");
for(int i=0; i<n; i++) {
int j = 0;
while(true) {
if(a[i] == Integer.parseInt(st[j])) {
if(i != n-1) {
System.out.print(j+1 + " ");
break;
}
else {
System.out.println(j+1);
break;
}
}
else {
j++;
}
}
}
}
}
}