n=int(eval(input()))

A=[int(x) for x in input().rstrip().split()]

ans=[0 for i in range(n)]

for i in range(n):

  ans[A[i]-1]=i+1

print((*ans))
n=int(eval(input()))

a=[int(x) for x in input().rstrip().split()]

ans=[0 for i in range(n)] 

for i in range(n):

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

print((*ans))

n = int(eval(input()))
A = [int(x) for x in input().rstrip().split()]
ans = [0 for i in range(n)]
for i in range(n):
    ans[A[i] - 1] = i + 1
print((*ans))

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

-A = [int(x) for x in input().rstrip().split()] +a = [int(x) for x in input().rstrip().split()] -    ans[A[i] - 1] = i + 1 +    ans[a[i] - 1] = i + 1