import sys
sys.stdin=open("input.txt","rt")
n=int(input())
ls=list(map(int, input().split()))
res=[0]*n
for i in range(n):
check = ls[i]
count = 0
for j in range(n):
if res[j] == 0:
if count == check:
res[j] = i + 1
break
else:
count += 1
for x in res:
print(x, end=" ")