n = int(input())

#x, y = map(int,input().split())

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



li2 = []

for i in range(n):

    li2.append([li[i],i+1])

li2.sort()



for i in range(len(li2)):

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

n = int(eval(input()))

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

li = []

for i,j in enumerate(L):

    li.append((i+1,j))



li.sort(key = lambda x:x[1])

ans = []

for i in range(n):

    ans.append(li[i][0])

print((*ans))
n = int(input())
# x, y = map(int,input().split())
li = list(map(int, input().split()))
li2 = []
for i in range(n):
    li2.append([li[i], i + 1])
li2.sort()
for i in range(len(li2)):
    print(li2[i][1], end=" ")

n = int(eval(input()))
L = list(map(int, input().split()))
li = []
for i, j in enumerate(L):
    li.append((i + 1, j))
li.sort(key=lambda x: x[1])
ans = []
for i in range(n):
    ans.append(li[i][0])
print((*ans))

-n = int(input()) -# x, y = map(int,input().split()) -li = list(map(int, input().split())) -li2 = [] +n = int(eval(input())) +L = list(map(int, input().split())) +li = [] +for i, j in enumerate(L): +    li.append((i + 1, j)) +li.sort(key=lambda x: x[1]) +ans = [] -    li2.append([li[i], i + 1]) -li2.sort() -for i in range(len(li2)): -    print(li2[i][1], end=" ") +    ans.append(li[i][0]) +print((*ans))