N=int(input())



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

B=[-1]*N

for i in range(N):

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

  

for b in B:

  print(b, end=" ")

N=int(eval(input()))

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

ans=[0]*N



for i in range(N):

    a=A[i]

    ans[a-1]=i+1



print((*ans))
N = int(input())
A = list(map(int, input().split()))
B = [-1] * N
for i in range(N):
    B[A[i] - 1] = i + 1
for b in B:
    print(b, end=" ")

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

-N = int(input()) +N = int(eval(input())) -B = [-1] * N +ans = [0] * N -    B[A[i] - 1] = i + 1 -for b in B: -    print(b, end=" ") +    a = A[i] +    ans[a - 1] = i + 1 +print((*ans))