n = int(input())

l = [[0]*2 for _ in range(n)]

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





for i in range(n):

    l[i][0] = a[i]

    l[i][1] = i



l.sort()



for i in range(n):

    print(l[i][1] + 1, end=" ")

n = int(eval(input()))

l = [0]*n

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





for i, j in enumerate(a):

    l[j - 1] = i + 1



print((*l))
n = int(input())
l = [[0] * 2 for _ in range(n)]
a = list(map(int, input().split()))
for i in range(n):
    l[i][0] = a[i]
    l[i][1] = i
l.sort()
for i in range(n):
    print(l[i][1] + 1, end=" ")

n = int(eval(input()))
l = [0] * n
a = list(map(int, input().split()))
for i, j in enumerate(a):
    l[j - 1] = i + 1
print((*l))

-n = int(input()) -l = [[0] * 2 for _ in range(n)] +n = int(eval(input())) +l = [0] * n -for i in range(n): -    l[i][0] = a[i] -    l[i][1] = i -l.sort() -for i in range(n): -    print(l[i][1] + 1, end=" ") +for i, j in enumerate(a): +    l[j - 1] = i + 1 +print((*l))