N = int(eval(input()))

A = [int(i) for i in input().split()]

for i, a in enumerate(A):

    A[i] = [a, i+1]

A.sort()

B = []

for a in A:

    B.append(a[1])

print((*B))
N = int(eval(input()))

A = [int(_) for _ in input().split()]

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

A_id.sort()

ans = [a[1] for a in A_id]

print((*ans))



N = int(eval(input()))
A = [int(i) for i in input().split()]
for i, a in enumerate(A):
    A[i] = [a, i + 1]
A.sort()
B = []
for a in A:
    B.append(a[1])
print((*B))

N = int(eval(input()))
A = [int(_) for _ in input().split()]
A_id = [[a, i + 1] for i, a in enumerate(A)]
A_id.sort()
ans = [a[1] for a in A_id]
print((*ans))

-A = [int(i) for i in input().split()] -for i, a in enumerate(A): -    A[i] = [a, i + 1] -A.sort() -B = [] -for a in A: -    B.append(a[1]) -print((*B)) +A = [int(_) for _ in input().split()] +A_id = [[a, i + 1] for i, a in enumerate(A)] +A_id.sort() +ans = [a[1] for a in A_id] +print((*ans))