N = int(input())

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

A_sort = []

for i in range(N):

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

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

for i, _ in A_sort:

    print(i, end=" ")

N = int(input())

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

idx = sorted(range(1, N + 1), key=lambda x: A[x - 1])

for i in idx:

    print(i, end=" ")

print("")

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

N = int(input())
A = list(map(int, input().split()))
idx = sorted(range(1, N + 1), key=lambda x: A[x - 1])
for i in idx:
    print(i, end=" ")
print("")

-A_sort = [] -for i in range(N): -    A_sort.append((i + 1, A[i])) -A_sort.sort(key=lambda x: x[1]) -for i, _ in A_sort: +idx = sorted(range(1, N + 1), key=lambda x: A[x - 1]) +for i in idx: +print("")