N = int(input())

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

A_sum = [[A, i + 1] for i, A in enumerate(A_list)]

A_sum.sort()

[print(a[1]) for a in A_sum]

N = int(input())

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



ans = [0]*(N+1)

for i, a in enumerate(A_list):

    ans[a] = i + 1



[print(ANS) for ANS in ans[1:]]

N = int(input())
A_list = list(map(int, input().split()))
A_sum = [[A, i + 1] for i, A in enumerate(A_list)]
A_sum.sort()
[print(a[1]) for a in A_sum]

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

-A_sum = [[A, i + 1] for i, A in enumerate(A_list)] -A_sum.sort() -[print(a[1]) for a in A_sum] +ans = [0] * (N + 1) +for i, a in enumerate(A_list): +    ans[a] = i + 1 +[print(ANS) for ANS in ans[1:]]