n=int(input())

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

d=[None]*n

for x,i in enumerate(a):

    d[i-1]=x+1

for i in d:

    print(i,end=" ")

n=int(eval(input()))

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

l=[0]*n

for x,i in enumerate(a):

    l[i-1]=x+1

print((*l))
n = int(input())
a = list(map(int, input().split()))
d = [None] * n
for x, i in enumerate(a):
    d[i - 1] = x + 1
for i in d:
    print(i, end=" ")

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

-n = int(input()) +n = int(eval(input())) -d = [None] * n +l = [0] * n -    d[i - 1] = x + 1 -for i in d: -    print(i, end=" ") +    l[i - 1] = x + 1 +print((*l))