n = int(input())



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



new_list = []



for i in range(1, n+1):

    new_list.append([enter[i-1], i])



new_list.sort()



for i in range(n):

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

n = int(input().strip())

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

b=list(range(0,n))

for i in range(0,n):

  b[a[i] - 1] = i+1

for i in range(0,n):

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

n = int(input())
enter = list(map(int, input().split()))
new_list = []
for i in range(1, n + 1):
    new_list.append([enter[i - 1], i])
new_list.sort()
for i in range(n):
    print(new_list[i][1], end=" ")

n = int(input().strip())
a = list(map(int, input().rstrip().split()))
b = list(range(0, n))
for i in range(0, n):
    b[a[i] - 1] = i + 1
for i in range(0, n):
    print(b[i], end=" ")

-n = int(input()) -enter = list(map(int, input().split())) -new_list = [] -for i in range(1, n + 1): -    new_list.append([enter[i - 1], i]) -new_list.sort() -for i in range(n): -    print(new_list[i][1], end=" ") +n = int(input().strip()) +a = list(map(int, input().rstrip().split())) +b = list(range(0, n)) +for i in range(0, n): +    b[a[i] - 1] = i + 1 +for i in range(0, n): +    print(b[i], end=" ")