n = int(input())

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



list = [-1]*n

for i in range(n):

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

# print(list)

print(list[0], end="")

for i in range(1, n):

    print(" ", end="")

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

n = int(input())

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



list = [0] * n

for i in range(n):

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



for i in range(n):

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

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

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

-list = [-1] * n +list = [0] * n -# print(list) -print(list[0], end="") -for i in range(1, n): -    print(" ", end="") -    print(list[i], end="") +for i in range(n): +    print(list[i], end=" ")