N=int(input())
listA=list(map(int,input().split()))
listB=[]
listC=[[]*N]
for i,happy in enumerate(listA):
  listB+=[[i,happy]]
listB.sort(key=lambda x: x[1], reverse=True)
a=0
for i in listB:  
  listC[a]=i
print(listB)