n=int(input()) a=input().split() a=list(map(int,a)) b=[] for i in a: b.append(i) a=sorted(a) a.reverse() c=[] for i in b: w=a.index(i) print(w+1,end=" ") /************************************************************** Problem: 1455 User: admin Language: Python Result: Accepted Time:94 ms Memory:34480 kb ****************************************************************/