import numpy as np

n = int(input())

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

a = np.argsort(np.array(a)) + 1

for i in range(len(a)):

    print(a[i], end='')

    if i != len(a) - 1:

        print(' ', end='')

import numpy as np

n = int(input())

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

a = np.argsort(np.array(a)) + 1

for i in range(len(a)):

    print(a[i], end=' ')

import numpy as np

n = int(input())
a = list(map(int, input().split()))
a = np.argsort(np.array(a)) + 1
for i in range(len(a)):
    print(a[i], end="")
    if i != len(a) - 1:
        print(" ", end="")

import numpy as np

n = int(input())
a = list(map(int, input().split()))
a = np.argsort(np.array(a)) + 1
for i in range(len(a)):
    print(a[i], end=" ")

-    print(a[i], end="") -    if i != len(a) - 1: -        print(" ", end="") +    print(a[i], end=" ")