n = int(input())

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

ans = [0] * n

i = 1

for j in a:

    ans[j-1] = i

    i += 1

for i in ans:

    print(i, end=" ")

n = int(eval(input()))

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

ans = [0] * n

i = 1

for j in a:

    ans[j-1] = i

    i += 1

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

n = int(eval(input()))
a = list(map(int, input().split()))
ans = [0] * n
i = 1
for j in a:
    ans[j - 1] = i
    i += 1
print((" ".join(map(str, ans))))

-n = int(input()) +n = int(eval(input())) -for i in ans: -    print(i, end=" ") +print((" ".join(map(str, ans))))