N = int(input())

items = []

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

for i in range(N):

    a = a_list[i]

    items.append((a, i+1))



items = sorted(items, key=lambda x:x[0])



for tu in items:

    print(tu[1], end=" ")

N = int(eval(input()))

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

items = []

for i in range(N):

    items.append((a_list[i], i+1))

items = sorted(items, key=lambda x:x[0])



for a in items:

    print((a[1]))

N = int(input())
items = []
a_list = list(map(int, input().split()))
for i in range(N):
    a = a_list[i]
    items.append((a, i + 1))
items = sorted(items, key=lambda x: x[0])
for tu in items:
    print(tu[1], end=" ")

N = int(eval(input()))
a_list = list(map(int, input().split()))
items = []
for i in range(N):
    items.append((a_list[i], i + 1))
items = sorted(items, key=lambda x: x[0])
for a in items:
    print((a[1]))

-N = int(input()) +N = int(eval(input())) +a_list = list(map(int, input().split())) -a_list = list(map(int, input().split())) -    a = a_list[i] -    items.append((a, i + 1)) +    items.append((a_list[i], i + 1)) -for tu in items: -    print(tu[1], end=" ") +for a in items: +    print((a[1]))