Takahashi is a teacher responsible for a class of N students.
The students are given distinct student numbers from 1 to N.
Today, all the students entered the classroom at different times.
According to Takahashi's record, there were A_i students in the classroom when student number i entered the classroom (including student number i).
From these records, reconstruct the order in which the students entered the classroom.

-----Constraints-----
 -  1 \le N \le 10^5 
 -  1 \le A_i \le N 
 -  A_i \neq A_j  (i \neq j)
 - All values in input are integers.

-----Input-----
Input is given from Standard Input in the following format:
N
A_1 A_2 \ldots A_N

-----Output-----
Print the student numbers of the students in the order the students entered the classroom.

-----Sample Input-----
3
2 3 1

-----Sample Output-----
3 1 2

First, student number 3 entered the classroom.
Then, student number 1 entered the classroom.
Finally, student number 2 entered the classroom.

Difficulty: introductory

Starter code:

Solutions:
N = int(input())
A = list(map(int, input().split()))
dct = dict(enumerate(A))
ad = sorted(dct.items(), key=lambda x:x[1])
ans = []
for i in ad:
    j = i[0] + 1
    ans.append(j)
a = map(str, ans)
b = ' '.join(a)
print(b)

N = int(input())
A = list(map(int, input().split()))
 
l = [0]*N
for i in range(N):
  l[A[i]-1] = str(i+1)

ans = ''
for i in range(N):
  ans += (l[i] + ' ')
  
print(ans)

n = int(input())
a = list(map(int,input().split()))
tl = [0 for i in range(n)]
for i in range(n):
    tl[a[i] -1] = str(i+1)
print(' '.join(tl))

import sys
import math
from collections import defaultdict, deque, Counter
from copy import deepcopy
from bisect import bisect, bisect_right, bisect_left
from heapq import heapify, heappop, heappush
    
input = sys.stdin.readline
def RD(): return input().rstrip()
def F(): return float(input().rstrip())
def I(): return int(input().rstrip())
def MI(): return map(int, input().split())
def MF(): return map(float,input().split())
def LI(): return list(map(int, input().split()))
def TI(): return tuple(map(int, input().split()))
def LF(): return list(map(float,input().split()))
def Init(H, W, num): return [[num for i in range(W)] for j in range(H)]
    
    
def main():
    N = I()
    A = LI()
    A2 = []
    for i in range(N):
        A2.append([i+1, A[i]])
    A2.sort(key=lambda x: x[1])
    ans = ""
    for a, b in A2:
        print(a, end = " ")
    print()
        
def __starting_point():
    main()
__starting_point()

n = int(input())
a_l = list(map(int, input().split()))
ans = [0] * n 
for i, a in enumerate(a_l):
    ans[a-1] = i+1
print(*ans)

N = int(input())
A = list(map(int, input().split()))

# 辞書型を使い、valueでソートする
dic = {}
for i in range(N):
  dic[i] = A[i]

dic = sorted(dic.items(), key=lambda x:x[1])
for d in dic:
  print(d[0]+1, end=" ")

n = int(input())
A = list(map(int, input().split()))

L = [0]*n
for i in range(n):
    L[A[i]-1] = i+1
print((*L))


# -*- coding: utf-8 -*-
"""
Created on Wed Sep  9 02:37:37 2020

@author: liang
"""
"""
key = lambda x:x[1]
"""
N = int(input())
A = [int(i) for i in input().split()]
B = [(i+1,A[i]) for i in range(N)]
B.sort(key=lambda x: x[1])
#print(B)
res = [str(b[0]) for b in B]
#print(res)
print(' '.join(res))

N = int(input())
A = list(map(int, input().split()))
 
ans = [0]*N
for i in range(N):
  ans[A[i]-1] = str(i+1)

for i in range(N):
  print(ans[i], end=' ')

N = int(input())
A_ls = list(map(int, input().split(' ')))
rst = [ [] for i in range(N) ]
for idx, val in enumerate(A_ls):
    rst[val - 1] = idx + 1
[ print(i, end=" ") for i in rst ]

n = int(input())
a = list(map(int, input().split()))

ans_h = {}
ans = []

for (i, ele) in enumerate(a):
    ans_h[ele] = i + 1

for i in range(1, n + 1):
    ans.append(str(ans_h[i]))

print(" ".join(ans))

import sys
import math
from collections import defaultdict, deque, Counter
from copy import deepcopy
from bisect import bisect, bisect_right, bisect_left
from heapq import heapify, heappop, heappush
    
input = sys.stdin.readline
def RD(): return input().rstrip()
def F(): return float(input().rstrip())
def I(): return int(input().rstrip())
def MI(): return map(int, input().split())
def MF(): return map(float,input().split())
def LI(): return list(map(int, input().split()))
def TI(): return tuple(map(int, input().split()))
def LF(): return list(map(float,input().split()))
def Init(H, W, num): return [[num for i in range(W)] for j in range(H)]
    
    
def main():
    N = I()
    A = LI()
    A2 = []
    for i in range(N):
        A2.append([i+1, A[i]])
    A2.sort(key=lambda x: x[1])
    ans = ""
    for a, b in A2:
        ans += str(a)+" "
    print(ans)
        
def __starting_point():
    main()
__starting_point()

n = int(input())
a = [int(i) for i in input().split()]
lst = [0 for _ in range(n)]
i = 1
for ai in a:
  lst[ai-1] = i
  i += 1
print(' '.join([str(i) for i in lst]))

n=int(input())
a=list(map(int,input().split()))
ans = []
for i in range(n):
    ans.append(0)
for i in range(n):
    ans[a[i]-1] = i +1
for i in range(len(ans)):
    print(ans[i], end=" ")

import numpy

N = int(input())
A_list = list(map(int, input().split()))

ans_list = numpy.argsort(A_list)
for i in range(N):
    ans_list[i] += 1
print(*ans_list)

N = int(input())
A = list(map(int, input().split()))
lis = [0] * N
k = 1
for i in A:
  lis[i-1] = k
  k += 1
lis = map(str, lis)
ans = " ".join(lis)
print(ans)

N = int(input())
A_list = list(map(int, input().split()))
B_list = [0] * N
for i, A in enumerate(A_list):
    B_list[A_list[i] - 1] = str(i + 1)
ans = " ".join(B_list)
print(ans)

N = int(input())
A = list(map(int, input().split()))
L = [0] * N
for i in range(N):
  L[A[i]-1] = i + 1
print(*L)

# C
N = int(input())
# A = list(map(int, input().split()))
order_number = {}


for num, order in enumerate(map(int, input().split())):
    order_number[num+1] = order

for order, number in sorted(order_number.items(), key=lambda x: x[1]):
    print(order, end=" ")
print()

n=int(input())
a=list(map(int,input().split()))

ans=['-']*n
for i in range(n):
    ans[a[i]-1]=str(i+1)

print(' '.join(ans))

#-*-coding:utf-8-*-
import sys
input=sys.stdin.readline

def main():
    attended_people=[]
    sorted_attended_people=[]
    index_number=[]
    answer=[]
    n = int(input())
    attended_people=list(map(int,input().split()))
    index_number=[[idx,number] for idx,number in enumerate(attended_people)]
    sorted_attended_people=sorted(index_number,key=lambda x:x[1])
    for idx,data in sorted_attended_people:
        answer.append(str(idx+1))
    print(" ".join(answer))

def __starting_point():
    main()
__starting_point()

n = int(input())
a = list(map(int,input().split()))
b = [0] * n
for i in range(n):
  b[a[i]-1] = i+1
print(*b)

N = int(input())
L = list(map(int,input().split()))
d = {}
for i in range(N):
  d[L[i]] = i + 1
for j in range(1 , N + 1):
  print(d[j] , end = ' ')
  
  


n = int(input())
a = list(map(int, input().split()))
ans = [0]*n
for i in range(n):
  ans[a[i]-1] += i+1
  ans[a[i]-1] = str(ans[a[i]-1])
print(" ".join(ans))

N = int(input())
A = list(map(int,input().split()))
B = [0]*N

for n in range(N):
  B[A[n]-1] = n+1
  
print(*B)

N = int(input())
A_ls = list(map(int, input().split(' ')))
rst = [ [] for i in range(N) ]
for idx, val in enumerate(A_ls):
    rst[val - 1] = idx + 1
[ print(i, end=" ") for i in rst ]

n = int(input())
an = list(map(int,input().split()))
zyunban = [0]*n
t = 1

for x in an:
  zyunban[x-1] = t
  t += 1
  


zyunban = list(map(str,zyunban))

print((" ".join(zyunban)))


N = int(input())
A = tuple(map(int, input().split()))
L = [0] * N
for i in range(N):
  L[A[i]-1] = i + 1
print(*L)

input();a={j:i+1 for i,j in enumerate(map(int,input().split()))}
print(*[j for i,j in sorted(a.items(),key=lambda x:x[0])])

import numpy as np

n = int(input())
a = list(map(int, input().split()))

ans = np.empty(n, dtype=int)
for i in range(n):
    ans[a[i]-1] = i+1
print(*ans)

N=int(input())
A=list(map(int, input().split()))
ans=[0]*N

for i in range(N):
	ans[A[i]-1]=str(i+1)

print(" ".join(ans))

n = int(input())
line = list(map(int, input().split()))
ans = ['0' for i in range(n)]
for i in range(n):
  ans[line[i]-1] = str(i+1)
print(' '.join(ans))

n = int(input())
a = list(map(int,input().split()))
b = [None] *n
for idx,person in enumerate(a):
    b[person-1] = idx+1
for j in b:
    print(j,end=' ')

n = int(input())
a = [int(s) for s in input().split()]
ans = [0] * n
for i in range(n):
    ans[a[i] - 1] = i + 1
print(*ans)  

n = int(input())
a = list(map(int,input().split()))
ans = [0] * n
for i,j in enumerate(a):
    ans[j-1] = i + 1
print(*ans)

n = int(input())
a = list(map(int,input().split()))
ans = [0]*n
for i in range(n):
  ans[a[i]-1] = i+1
for i in range(n):
  print(ans[i],end=" ")


n=int(input())
A=list(map(int,input().split()))
ans=[0]*n
for i in range(n):
  ans[A[i]-1]=i+1
print(*ans)

N = int(input())
A = list(map(int, input().split()))
A_dict_list = []

for i in range(1, N+1):
    A_dict_list.append({
        'num': i,
        'people': A[i-1]
    })

A_dict_list = sorted(A_dict_list, key=lambda x:x['people'])

ans = []
for a in A_dict_list:
    ans.append(a['num'])

print((*ans))


n = int(input())
A = list(map(int,input().split()))
L = [0]*n
for i in range(n):
  L[A[i]-1] = i + 1
print(*L)

n = int(input())
a = [int(x) for x in input().split()]
ans = [0] * n
for i in range(n):
  ans[a[i]-1] = i+1
ans = [str(x) for x in ans]
print(" ".join(ans))

n = int(input())
an = list(map(int, input().split()))


class Solution:
    values = [i for i in range(1, n + 1)]

    def __init__(self, n, an):
        self.n = n
        self.an = an

    def answer(self):
        d = dict(zip(self.an, Solution.values))
        for i in range(1, n + 1):
            print(d[i], end=" ")


conditions = Solution(n, an)
conditions.answer()


N = int(input())
A_ls = list(map(int, input().split(' ')))
rst = [ [] for i in range(N) ]
for idx, val in enumerate(A_ls):
    rst[val - 1] = idx + 1
[ print(i, end=" ") for i in rst ]

n = int(input())
a = list(map(int,input().split()))
ans_list = [0] * n
for i in range(n):
    ans_list[a[i] - 1] = (i + 1)
ans = ""
for i in range(n):
    ans += str(ans_list[i])
    ans += " "
print(ans)

n = int(input())
a = list(map(int, input().split()))

order = [0] * n

for i in range(n):
    order[a[i] - 1] = i + 1

print(' '.join(map(str, order)))

N = int(input())
A = list(map(int, input().split()))

rev = [i for i in range(N)]
for i in range(N):
    rev[A[i]-1] = i+1
print((*rev))


n = int(input())
alst = list(map(int, input().split()))
ans = [-1 for _ in range(n)]
for i, a in enumerate(alst, start = 1):
  ans[a - 1] = i
print(*ans)

N=int(input())
A=list(map(int,input().split()))
a=[0]*N
for i in range(N):
    a[A[i]-1]=i+1

for i in range(N-1):
    print(a[i],end=' ')
print(a[N-1])

n = int(input())
arr = list(map(int,input().split()))

d = {}
for i, a in enumerate(arr,1):
  d[i] = a
d = sorted(d.items(), key=lambda x:x[1])
for x in dict(d).keys():
  print(x, end=" ")

import numpy as np

n = int(input())
a = np.array(list(map(int,input().split())))

ans = np.argsort(a)
print(*ans + 1)

# coding: utf-8

def main():
    N = int(input())
    A = list(map(int, input().split()))
    B = [[a, i + 1] for i, a in enumerate(A)]
    B.sort()
    for i, j in B:
        if i == N:
            print(j)
        else:
            print(j, "", end='')


def __starting_point():
    main()

__starting_point()

n = int(input())
a = list(map(int,input().split()))
l = [0] * n
for i in range(n):
    l[a[i]-1] = i + 1
print(*l)

N = int(input())
A = list(map(int,input().split()))

ans = [-1] * N
for i,a in enumerate(A):
    ans[a-1] = i+1
print((*ans))


n = int(input())
a = [int(s) for s in input().split()]
ans = [0]*n

for i in range(n):
    ans[a[i] - 1] = i + 1
print(" ".join(map(str,ans)))

n=int(input())
s={i+1:int(x) for i,x in enumerate(input().split())}
s=sorted(s.items(), key=lambda x:x[1])
for i,j in s:
  print(i,end=' ')


n = int(input())
an = list(map(int, input().split()))
keys = [i for i in range(1, n + 1)]

d = dict(zip(an, keys))

for i in range(1, n + 1):
    print(d[i], end=" ")


n=int(input())
a=list(map(int,input().split()))
ans=[0]*n
for i in range(len(a)):
    ans[a[i]-1]=i+1
print(*ans)

N = int(input())
A = list(map(int,input().split()))
B = [0]*N

for i in range(N):
  B[A[i]-1] = i+1
  
print(" ".join(map(str,B)))

n = int(input())
a = list(map(int, input().split()))
a = {a[i-1]: i for i in range(1, n+1)}
for x in sorted(a.items()):
	print(x[1], end=' ')

3
import sys
input = lambda: sys.stdin.readline().strip()
n = int(input())
a = [int(x) for x in input().split()]
print((*(x + 1 for x in sorted(list(range(n)), key=lambda i: a[i]))))


N = int(input())
A = list(map(int, input().split()))

lst = []
for i in range(N):
  lst.append([i+1, A[i]])
lst.sort(key=lambda x: x[1])
for j in lst:
  print(j[0], end=" ")

N = int(input())
rst = [ [] for i in range(N) ]
A_ls = list(map(int, input().split(' ')))
for i, j in enumerate(A_ls):
    rst[j - 1] = i + 1
[ print(i, end=" ") for i in rst ]

N=int(input())
A=list(map(int,input().split()))

ans=[0]*N

for i in range(N):
    ans[A[i]-1]=i+1


print(*ans)

N = int(input())
a = list(map(int,input().split()))
num = [0]*N
for i in range(N):
  num[a[i]-1]=i
for i in num:
  print(i+1,end=' ')

n=int(input())
a=list(map(int,input().split()))
ans=[0]*n
for i in range(n):
    ans[a[i]-1]+=(i+1)
    ans[a[i]-1]=str(ans[a[i]-1])
print(" ".join(ans))

n = int(input())
A = list(map(int, input().split()))

P = [0]*n

for i in range(n):
    P[A[i]-1] = i+1

print(*P,sep=' ')

n = int(input())
A = list(map(int, input().split()))
ans = [0]*n
for i in range(n):
    ans[A[i]-1]=i+1
print(*ans)

N = int(input())
A_ls = list(map(int, input().split(' ')))
rst = [ [] for i in range(N) ]
for idx, val in enumerate(A_ls):
    rst[val - 1] = idx + 1
[ print(i, end=" ") for i in rst ]

N = int(input())
A = [int(i) for i in input().split()]
ans = [0]*N
for i in range(N):
    ans[A[i]-1] = i+1    
print(" ".join(map(str,ans)))

N = int(input())
A_ls = list(map(int, input().split(' ')))
rst = [ [] for i in range(N) ]
for idx, val in enumerate(A_ls):
    rst[val - 1] = idx + 1
[ print(i, end=" ") for i in rst ]

def main():
    import sys
    n = int(input())
    a = list(map(int,sys.stdin.readline().split()))

    c = []

    for i in range(1,n+1):
        c.append((i,a[i-1]))

    a = sorted(c,key=lambda x:x[1])

    for i,idx in a:
        print(i,end=" ")
main()

N=int(input())
Alist=list(map(int,input().split()))
index=[i+1 for i in range(N)]
Adict=dict(zip(Alist,index))
for i in range(1,N+1):
    print(Adict[i],end=' ')

N = int(input())
A = list(map(int,input().split()))

order = []

for n, a in enumerate(A):
    order.append([n+1,a])

order.sort(key = lambda x:x[1])

for Num, num in order:
    print(Num, end = " ")

print()

n = int(input())
arr = list(map(int,input().split()))

new_arr = [0] * len(arr)
for i, a in enumerate(arr,1):
  new_arr[a-1] = i
print(*new_arr)

n=int(input())
A=list(map(int,input().split()))
ans = list(range(n))
for i in range(n):
  ans[A[i]-1] = i+1
print(" ".join(map(str,ans)))

n = int(input())
a = list(map(int, input().split()))

l = sorted([(a[i], i+1) for i in range(n)])
c = [y for x, y in l]
print(' '.join(list(map(str, c))))

n = int(input())
A = list(map(int, input().split()))
B = [(i+1, A[i]) for i in range(n)]
B.sort(key=lambda x: x[1])
print (" ".join(list(map(str, [B[i][0] for i in range(n)]))))

n = int(input())
a = list(map(int, input().split()))
l = []
for i in range(n):
    l.append([a[i], i+1])
l = sorted(l)
ans = []
for j in range(n):
    ans.append(str(l[j][1]))
print(" ".join(ans))

N = int(input())
A = list(map(int,input().split()))
for i in range(N):
  A[i] = (A[i],i+1)
A.sort()
ans = ''
for tup in A:
  v, i = tup
  ans+=str(i)+' '
print(ans)

n = int(input())
lst = list(map(int,input().split()))
lst2 = [0 for i in range(n)]
for i in range(n):
    x = lst[i]
    lst2[x - 1] = i + 1

for i in range(n):
    if (i != n - 1):
        print(lst2[i], end = ' ')
    else:
        print(lst2[i])


N = int(input())
A = list(map(int, input().split()))
 
ans = [0]*N
for i in range(N):
  ans[A[i]-1] = str(i+1)

# 答えを出力する。print(end=...)は便利！
for i in range(N):
  print(ans[i], end=' ')

def resolve():
    n = int(input())
    a = tuple(map(int,input().split()))
    attend = [0]*n
    for i,j in enumerate(a):
        attend[j-1] = i+1
    print(*attend)
resolve()

N=int(input())
A=list(map(int, input().split()))
B=[0]*N
C=''
 
for i in range(N):
    B[A[i]-1]=i+1
 
for i in range(N):
    C+=str(B[i])+' '
 
print(C[0:-1])

N = int(input())
A = [int(n) for n in input().split()]
ans = [0] * N
for i, v in enumerate(A):
    ans[v-1] = i+1

print(' '.join([str(n) for n in ans]))

N = int(input())
arr = list(map(int, input().split()))
arr2 = [0]*N
for i in range(N):
    arr2[arr[i]-1] = i+1
print(*arr2)

import numpy as np
n = input()
print(*np.argsort(list(map(int,input().split())))+1)

N = int(input())
A = [int(a) for a in input().split()]
ans = [0] * N
for i in range(N):
  ans[A[i] - 1] = i + 1
print(*ans)

N = int(input())
A = list(map(int, input().split()))

ans = [0] * N

for i in range(N):
    ans[A[i]-1] = i + 1

print(*ans)

n=int(input())
a=list(map(int,input().split()))
l=[0]*(n+1)
for i in range(n):
  l[a[i]]=i+1
for i in range(1,n+1):
  print(l[i],end=" ")

n=int(input())

a_tmp=list(map(int,input().split()))
a=[]
for i in range(n):
    a.append([a_tmp[i],i+1])
a.sort(key=lambda x:x[0])

for i in range(n):
    print(a[i][1],end=" ")


# -*- coding:utf-8 -*-
N = int(input())
a = list(map(int,input().split()))

L = {}

for i in range(N):
    L[i] = a[i]

sort_L = sorted(L.items(), key=lambda x:x[1])

for j in sort_L:
    print(j[0]+1, end =" ")


N = int(input())
A = list(map(int, input().split()))

L = [0]*N

for i in range(N):
    L[A[i]-1] = i+1

print(*L)

N=int(input())
A=list(map(int,input().split()))
for i in range(N):
    A[i]=[A[i],i]
A.sort()
for i in range(N):
    print(A[i][1]+1,end=' ')
print()


N = int(input())
A = list(map(int, input().split()))
L = [[] for x in range(N)]

for i in range(N):
    L[i] = [A[i], i+1]
L.sort()

ANS = [0 for i in range(N)]
for i in range(N):
    ANS[i] = L[i][1]
print(*ANS)

n=int(input())
a=list(map(int,input().split()))
b=[0]*n
for i in range(n):
  x=a[i]
  b[x-1]=i+1

print(*b)

n = int(input())
a = list(map(int,input().split()))

c = []

for i in range(1,n+1):
    c.append((i,a[i-1]))

a = sorted(c,key=lambda x:x[1])

for i,idx in a:
    print(i,end=" ")

N = int(input())
A = [int(c) for c in input().split()]

l = [0]*N
for i in range(N):
    l[A[i]-1] = i+1

print((' '.join(map(str, l))))



n=int(input())
a=list(map(int,input().split()))
ans=[0]*n
for i , j in enumerate(a):
  ans[j-1]=i+1
print(*ans)