a = int(input())

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

c = []

for val in range(a):

    c.append(5)

for val in range(a):

    c[b[val]-1] = val+1

d = str()

for val in range(len(c)-1):

    print(c[val], end = ' ')

print(c[-1])

n = int(eval(input()))

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

ind = [0 for i in range(n)]

for i in range(n):

    ind[people[i]-1] = i+1

print((*ind))
a = int(input())
b = list(map(int, input().split()))
c = []
for val in range(a):
    c.append(5)
for val in range(a):
    c[b[val] - 1] = val + 1
d = str()
for val in range(len(c) - 1):
    print(c[val], end=" ")
print(c[-1])

n = int(eval(input()))
people = list(map(int, input().split()))
ind = [0 for i in range(n)]
for i in range(n):
    ind[people[i] - 1] = i + 1
print((*ind))

-a = int(input()) -b = list(map(int, input().split())) -c = [] -for val in range(a): -    c.append(5) -for val in range(a): -    c[b[val] - 1] = val + 1 -d = str() -for val in range(len(c) - 1): -    print(c[val], end=" ") -print(c[-1]) +n = int(eval(input())) +people = list(map(int, input().split())) +ind = [0 for i in range(n)] +for i in range(n): +    ind[people[i] - 1] = i + 1 +print((*ind))