N = int(input())

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



student_dic = {}

for i in range(N):

    student_dic[A[i]] = i+1





tmp = sorted(student_dic.items())

for i in range(N):

    if i == N-1:

        print(tmp[i][1])

    else:

        print(tmp[i][1], end=" ")

N = int(input())

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



student_dic = [0 for i in range(N)]

for i in range(N):

    student_dic[A[i]-1] = i+1





for i in range(N):

    if i == N-1:

        print(student_dic[i])

    else:

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

N = int(input())
A = list(map(int, input().split()))
student_dic = {}
for i in range(N):
    student_dic[A[i]] = i + 1
tmp = sorted(student_dic.items())
for i in range(N):
    if i == N - 1:
        print(tmp[i][1])
    else:
        print(tmp[i][1], end=" ")

N = int(input())
A = list(map(int, input().split()))
student_dic = [0 for i in range(N)]
for i in range(N):
    student_dic[A[i] - 1] = i + 1
for i in range(N):
    if i == N - 1:
        print(student_dic[i])
    else:
        print(student_dic[i], end=" ")

-student_dic = {} +student_dic = [0 for i in range(N)] -    student_dic[A[i]] = i + 1 -tmp = sorted(student_dic.items()) +    student_dic[A[i] - 1] = i + 1 -        print(tmp[i][1]) +        print(student_dic[i]) -        print(tmp[i][1], end=" ") +        print(student_dic[i], end=" ")