N=int(input())

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

ANS=[]

for i in range(N):

    ANS+=[[A[i],i+1]]

ANS.sort()

for i in range(N):

    print(ANS[i][1], end=' ')

n = int(eval(input()))

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

ans = [0] * n



for i in range(n):

  ans[l[i]-1] = i + 1

print((*ans))

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

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

-N = int(input()) -A = list(map(int, input().split())) -ANS = [] -for i in range(N): -    ANS += [[A[i], i + 1]] -ANS.sort() -for i in range(N): -    print(ANS[i][1], end=" ") +n = int(eval(input())) +l = list(map(int, input().split())) +ans = [0] * n +for i in range(n): +    ans[l[i] - 1] = i + 1 +print((*ans))