n = int(eval(input()))

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



dic = {}

for i in range(n):

  dic[A[i]] = i+1



ans = [dic[i+1] for i in range(n)]

print((*ans))    

    
N = int(eval(input()))

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



ans = [0]*N

for idx, a in enumerate(A):

    ans[a-1] = idx+1

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

N = int(eval(input()))
A = list(map(int, input().split()))
ans = [0] * N
for idx, a in enumerate(A):
    ans[a - 1] = idx + 1
print((*ans))

-n = int(eval(input())) +N = int(eval(input())) -dic = {} -for i in range(n): -    dic[A[i]] = i + 1 -ans = [dic[i + 1] for i in range(n)] +ans = [0] * N +for idx, a in enumerate(A): +    ans[a - 1] = idx + 1