N = int(input())

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

An = [[i+1, A[i]] for i in range(N)]

An = sorted(An, key=lambda x: x[1])

for i in range(N):

    print(An[i][0], end=" ")

N = int(input())

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

d = []

for n in range(N):

    d.append([A[n], n])

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

for i, j in d:

    print(j+1, end=" ")

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

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

-An = [[i + 1, A[i]] for i in range(N)] -An = sorted(An, key=lambda x: x[1]) -for i in range(N): -    print(An[i][0], end=" ") +d = [] +for n in range(N): +    d.append([A[n], n]) +d = sorted(d, key=lambda x: x[0]) +for i, j in d: +    print(j + 1, end=" ")