from operator import itemgetter

n = int(eval(input()))

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

lst2 = []

for i in range(n):

  lst2.append((i + 1, lst[i]))

lst2.sort(key=itemgetter(1))

s = ''

for i in lst2:

  s = s + str(i[0]) + ' '

print((s[:-1]))
n = int(eval(input()))

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

dic = {}

for i in range(n):

  dic[lst[i]] = i + 1

s = ''

for i in range(n):

  s += str(dic[i + 1]) + ' '

print((s[:-1]))
from operator import itemgetter

n = int(eval(input()))
lst = list(map(int, input().split()))
lst2 = []
for i in range(n):
    lst2.append((i + 1, lst[i]))
lst2.sort(key=itemgetter(1))
s = ""
for i in lst2:
    s = s + str(i[0]) + " "
print((s[:-1]))

n = int(eval(input()))
lst = list(map(int, input().split()))
dic = {}
for i in range(n):
    dic[lst[i]] = i + 1
s = ""
for i in range(n):
    s += str(dic[i + 1]) + " "
print((s[:-1]))

-from operator import itemgetter - -lst2 = [] +dic = {} -    lst2.append((i + 1, lst[i])) -lst2.sort(key=itemgetter(1)) +    dic[lst[i]] = i + 1 -for i in lst2: -    s = s + str(i[0]) + " " +for i in range(n): +    s += str(dic[i + 1]) + " "