n=int(eval(input()))

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

b=[0 for _ in range(n)]

for i in range(n):

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

for j in range(n):

  print((b[j]))
n=int(eval(input()))

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

b=[0 for _ in range(n)]

for i in range(n):

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

str_b = list(map(str, b))

print((' '.join(str_b)))
n = int(eval(input()))
a = list(map(int, input().split()))
b = [0 for _ in range(n)]
for i in range(n):
    b[a[i] - 1] = i + 1
for j in range(n):
    print((b[j]))

n = int(eval(input()))
a = list(map(int, input().split()))
b = [0 for _ in range(n)]
for i in range(n):
    b[a[i] - 1] = i + 1
str_b = list(map(str, b))
print((" ".join(str_b)))

-for j in range(n): -    print((b[j])) +str_b = list(map(str, b)) +print((" ".join(str_b)))