n = int(input())

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

p = zip(a,[i for i in range(1,n+1)])

s = sorted(p)

for i in s:

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

n = int(input())

L= sorted([(i+1, int(j)) for i,j in enumerate(input().split())],key= lambda x: x[1])

for i in L:

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

n = int(input())
a = list(map(int, input().split()))
p = zip(a, [i for i in range(1, n + 1)])
s = sorted(p)
for i in s:
    print(i[1], end=" ")

n = int(input())
L = sorted([(i + 1, int(j)) for i, j in enumerate(input().split())], key=lambda x: x[1])
for i in L:
    print(i[0], end=" ")

-a = list(map(int, input().split())) -p = zip(a, [i for i in range(1, n + 1)]) -s = sorted(p) -for i in s: -    print(i[1], end=" ") +L = sorted([(i + 1, int(j)) for i, j in enumerate(input().split())], key=lambda x: x[1]) +for i in L: +    print(i[0], end=" ")