from heapq import heappush,heappop
n=int(input())
a=list(map(int,input().split()))
b=[]
for i in range(n):
  heappush(b,(a[i],i+1))
a=[]
for i in range(n):
  c,d=heappop(b)
  a.append(d)
print(*a) from heapq import heappush,heappop n=int(input()) n int(input()) int input() input a=list(map(int,input().split())) a list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split b=[] b [] for i in range(n):
  heappush(b,(a[i],i+1)) i range(n) range n heappush(b,(a[i],i+1)) heappush b (a[i],i+1) a[i] a i i+1 i 1 a=[] a [] for i in range(n):
  c,d=heappop(b)
  a.append(d) i range(n) range n c,d=heappop(b) c heappop(b) heappop b d a.append(d) a.append a append d print(*a) print *a a c,d=heappop(b) heappop(b) c a=list(map(int,input().split())) list(map(int,input().split())) a a=[] [] a d=heappop(b) heappop(b) d n=int(input()) int(input()) n b=[] [] b
from heapq import heappush,heappop
n=int(input())
a=list(map(int,input().split()))
b=[]
for i in range(n):
  heappush(b,(a[i],i+1))
a=[]
for i in range(n):
  c,d=heappop(b)
  a.append(d)
print(*a)