N = int(input())

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



dic = {i:0 for i in range(1, N + 1)}





for i in range(N):

    a = A[i]

    dic[a] = i + 1



for i in range(1, N + 1):

    print(dic[i], end="")

    if i != N:

        print(" ", end="")



print()

N = int(eval(input()))

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



a = [0] * N



for i in range(N):

    a[A[i] - 1] = str(i + 1)



res = " ".join(a)



print(res)
N = int(input())
A = list(map(int, input().split()))
dic = {i: 0 for i in range(1, N + 1)}
for i in range(N):
    a = A[i]
    dic[a] = i + 1
for i in range(1, N + 1):
    print(dic[i], end="")
    if i != N:
        print(" ", end="")
print()

N = int(eval(input()))
A = list(map(int, input().split()))
a = [0] * N
for i in range(N):
    a[A[i] - 1] = str(i + 1)
res = " ".join(a)
print(res)

-N = int(input()) +N = int(eval(input())) -dic = {i: 0 for i in range(1, N + 1)} +a = [0] * N -    a = A[i] -    dic[a] = i + 1 -for i in range(1, N + 1): -    print(dic[i], end="") -    if i != N: -        print(" ", end="") -print() +    a[A[i] - 1] = str(i + 1) +res = " ".join(a) +print(res)