n = int(input())

a = [(int(a), num) for a, num in zip(input().split(" "), list(range(1,n + 1)))]

a.sort()

m = len(a)

for i in range(m):

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

    if(i + 1 < m):

        print(" ",end="")

print()

n = int(eval(input()))

a = sorted([(int(a), num) for a, num in zip(input().split(" "), list(range(1,n + 1)))])

print((" ".join([str(x[1]) for x in a])))
n = int(input())
a = [(int(a), num) for a, num in zip(input().split(" "), list(range(1, n + 1)))]
a.sort()
m = len(a)
for i in range(m):
    print(a[i][1], end="")
    if i + 1 < m:
        print(" ", end="")
print()

n = int(eval(input()))
a = sorted([(int(a), num) for a, num in zip(input().split(" "), list(range(1, n + 1)))])
print((" ".join([str(x[1]) for x in a])))

-n = int(input()) -a = [(int(a), num) for a, num in zip(input().split(" "), list(range(1, n + 1)))] -a.sort() -m = len(a) -for i in range(m): -    print(a[i][1], end="") -    if i + 1 < m: -        print(" ", end="") -print() +n = int(eval(input())) +a = sorted([(int(a), num) for a, num in zip(input().split(" "), list(range(1, n + 1)))]) +print((" ".join([str(x[1]) for x in a])))