n = int(input())

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

b = [0]*n

for i in range(n):

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

for i in range(n):

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

n = int(eval(input()))

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

b = [0]*n

for i in range(n):

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

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

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

-n = int(input()) +n = int(eval(input())) -for i in range(n): -    print(b[i], end=" ") +print((*b))