N=int(input())

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

Alist=[]

for i in range(N):

    Alist.append([A[i],i+1])



Alist.sort()



for i in range(N):

    print(Alist[i][1],end=" ")

N=int(eval(input()))

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

Alist=[]

for i in range(N):

    Alist.append([A[i],i+1])



Alist.sort()



A=[Alist[i][1] for i in range(N)]



print((" ".join(map(str,A))))

N = int(input())
A = list(map(int, input().split()))
Alist = []
for i in range(N):
    Alist.append([A[i], i + 1])
Alist.sort()
for i in range(N):
    print(Alist[i][1], end=" ")

N = int(eval(input()))
A = list(map(int, input().split()))
Alist = []
for i in range(N):
    Alist.append([A[i], i + 1])
Alist.sort()
A = [Alist[i][1] for i in range(N)]
print((" ".join(map(str, A))))

-N = int(input()) +N = int(eval(input())) -for i in range(N): -    print(Alist[i][1], end=" ") +A = [Alist[i][1] for i in range(N)] +print((" ".join(map(str, A))))