n = int(input())

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



ind = 1

x = []

for a in A:

    x.append((ind, a))

    ind += 1



x = sorted(x, key=lambda x: x[1])



for i in x:

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

n = int(eval(input()))

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



x = [0] * n



for i in range(n):

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



print((*x))
n = int(input())
A = map(int, input().split())
ind = 1
x = []
for a in A:
    x.append((ind, a))
    ind += 1
x = sorted(x, key=lambda x: x[1])
for i in x:
    print(i[0], end=" ")

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

-n = int(input()) -A = map(int, input().split()) -ind = 1 -x = [] -for a in A: -    x.append((ind, a)) -    ind += 1 -x = sorted(x, key=lambda x: x[1]) -for i in x: -    print(i[0], end=" ") +n = int(eval(input())) +a = list(map(int, input().split())) +x = [0] * n +for i in range(n): +    x[a[i] - 1] = i + 1 +print((*x))