n=int(eval(input()))

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

B=[]

for i,a in enumerate(A):

    B.append((a,i+1))

B.sort()

Ans=[]

for _,a in B:

    Ans.append(a)

print((*Ans))
n=int(eval(input()))

A=tuple(map(int,input().split()))

Ans=[0]*n

for i,a in enumerate(A):

    Ans[a-1]=i+1

print((*Ans))
n = int(eval(input()))
A = list(map(int, input().split()))
B = []
for i, a in enumerate(A):
    B.append((a, i + 1))
B.sort()
Ans = []
for _, a in B:
    Ans.append(a)
print((*Ans))

n = int(eval(input()))
A = tuple(map(int, input().split()))
Ans = [0] * n
for i, a in enumerate(A):
    Ans[a - 1] = i + 1
print((*Ans))

-A = list(map(int, input().split())) -B = [] +A = tuple(map(int, input().split())) +Ans = [0] * n -    B.append((a, i + 1)) -B.sort() -Ans = [] -for _, a in B: -    Ans.append(a) +    Ans[a - 1] = i + 1