N = int(input())

A = {num: i+1 for i,num in enumerate(map(int, input().split()))}



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

    if i == N:

        print(A[i])

    else:

        print(A[i], end=" ")

N = int(eval(input()))

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



rev = [0] * N

for i in range(N):

    rev[A[i] - 1] = i + 1

print((*rev))
N = int(input())
A = {num: i + 1 for i, num in enumerate(map(int, input().split()))}
for i in range(1, N + 1):
    if i == N:
        print(A[i])
    else:
        print(A[i], end=" ")

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

-N = int(input()) -A = {num: i + 1 for i, num in enumerate(map(int, input().split()))} -for i in range(1, N + 1): -    if i == N: -        print(A[i]) -    else: -        print(A[i], end=" ") +N = int(eval(input())) +A = list(map(int, input().split())) +rev = [0] * N +for i in range(N): +    rev[A[i] - 1] = i + 1 +print((*rev))