N = int(eval(input()))

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



dic={}

ans=""



for i in range(N):

    dic[list[i]]=i+1

    

for i in range(1, N+1):

    ans += " " + str(dic[i])

    

print(ans)

N = int(eval(input()))

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



ans = [0]*N

for i, a in enumerate(A):

    ans[a-1] = i + 1

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

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

-list = list(map(int, input().split())) -dic = {} -ans = "" -for i in range(N): -    dic[list[i]] = i + 1 -for i in range(1, N + 1): -    ans += " " + str(dic[i]) -print(ans) +A = list(map(int, input().split())) +ans = [0] * N +for i, a in enumerate(A): +    ans[a - 1] = i + 1 +print((*ans))