n=int(input())

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

b={}

cnt=1;

for i in a:

    b[i]=cnt

    cnt+=1

for i in range(1,n+1):

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

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(input())
a = list(map(int, input().split()))
b = {}
cnt = 1
for i in a:
    b[i] = cnt
    cnt += 1
for i in range(1, n + 1):
    print(b[i], end=" ")

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=" ")

-b = {} -cnt = 1 -for i in a: -    b[i] = cnt -    cnt += 1 -for i in range(1, n + 1): -    print(b[i], end=" ") +d = [None] * n +for x, i in enumerate(a): +    d[i - 1] = x + 1 +for i in d: +    print(i, end=" ")