N = int(eval(input()))

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

li = []

for itr, val in enumerate(A):

  li.append([val, itr + 1])

li.sort()

print((*[i[1] for i in li]))

n = int(eval(input()))

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



B = [(a, i + 1) for i, a in enumerate(A)]

B.sort()



ans = [j for _, j in B]



print((*ans))
N = int(eval(input()))
A = list(map(int, input().split()))
li = []
for itr, val in enumerate(A):
    li.append([val, itr + 1])
li.sort()
print((*[i[1] for i in li]))

n = int(eval(input()))
A = list(map(int, input().split()))
B = [(a, i + 1) for i, a in enumerate(A)]
B.sort()
ans = [j for _, j in B]
print((*ans))

-N = int(eval(input())) +n = int(eval(input())) -li = [] -for itr, val in enumerate(A): -    li.append([val, itr + 1]) -li.sort() -print((*[i[1] for i in li])) +B = [(a, i + 1) for i, a in enumerate(A)] +B.sort() +ans = [j for _, j in B] +print((*ans))