N = int(input())

A = [[int(zz),i+1] for i,zz in enumerate(input().split())]

A.sort()



[print(i[1],end=' ') for i in A]

N = int(input())

A = [int(i) for i in input().split()]



ans = []

for i in range(N):

    ans.append([A[i],i+1])



ans.sort()

for i in range(N-1):

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

print(ans[-1][1])

N = int(input())
A = [[int(zz), i + 1] for i, zz in enumerate(input().split())]
A.sort()
[print(i[1], end=" ") for i in A]

N = int(input())
A = [int(i) for i in input().split()]
ans = []
for i in range(N):
    ans.append([A[i], i + 1])
ans.sort()
for i in range(N - 1):
    print(ans[i][1], end=" ")
print(ans[-1][1])

-A = [[int(zz), i + 1] for i, zz in enumerate(input().split())] -A.sort() -[print(i[1], end=" ") for i in A] +A = [int(i) for i in input().split()] +ans = [] +for i in range(N): +    ans.append([A[i], i + 1]) +ans.sort() +for i in range(N - 1): +    print(ans[i][1], end=" ") +print(ans[-1][1])