n = int(input())

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

order = [0] * n

for i in range(n):

    order[a[i] - 1] = i + 1

for i in range(n - 1):

    print(str(order[i]), end=' ')

print(order[n - 1])

n = int(input())

a = sorted([(i, int(ai)) for i, ai in zip(range(1, n + 1), input().split())], key=lambda x: x[1])

for i in range(n):

    print(a[i][0], end=' ')

n = int(input())
a = [int(i) for i in input().split()]
order = [0] * n
for i in range(n):
    order[a[i] - 1] = i + 1
for i in range(n - 1):
    print(str(order[i]), end=" ")
print(order[n - 1])

n = int(input())
a = sorted(
    [(i, int(ai)) for i, ai in zip(range(1, n + 1), input().split())],
    key=lambda x: x[1],
)
for i in range(n):
    print(a[i][0], end=" ")

-a = [int(i) for i in input().split()] -order = [0] * n +a = sorted( +    [(i, int(ai)) for i, ai in zip(range(1, n + 1), input().split())], +    key=lambda x: x[1], +) -    order[a[i] - 1] = i + 1 -for i in range(n - 1): -    print(str(order[i]), end=" ") -print(order[n - 1]) +    print(a[i][0], end=" ")