n = int(eval(input()))

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

b = list(range(1,n+1))

c = []

data = dict(list(zip(a,b)))

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

    print((data[i]))



n=int(eval(input()))

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

s=[0]*n



for i in range(n):

  s[d[i]-1]=i+1

print((*s))
n = int(eval(input()))
a = list(map(int, input().split()))
b = list(range(1, n + 1))
c = []
data = dict(list(zip(a, b)))
for i in range(1, n + 1):
    print((data[i]))

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

-a = list(map(int, input().split())) -b = list(range(1, n + 1)) -c = [] -data = dict(list(zip(a, b))) -for i in range(1, n + 1): -    print((data[i])) +d = list(map(int, input().split())) +s = [0] * n +for i in range(n): +    s[d[i] - 1] = i + 1 +print((*s))