n = int(input())

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



ans = [0]*n

for a in list(enumerate(l)):

  a = list(a)

  ans[a[1]-1] = a[0]+1



for _ in ans:

  print(_, ' ', end='')

n = int(input())

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

ans = [0]*n

for i,j in enumerate(a,start=1):

  ans[j-1] = i

for i in range(n):

  print(ans[i],' ', end='')

n = int(input())
l = list(map(int, input().split()))
ans = [0] * n
for a in list(enumerate(l)):
    a = list(a)
    ans[a[1] - 1] = a[0] + 1
for _ in ans:
    print(_, " ", end="")

n = int(input())
a = list(map(int, input().split()))
ans = [0] * n
for i, j in enumerate(a, start=1):
    ans[j - 1] = i
for i in range(n):
    print(ans[i], " ", end="")

-l = list(map(int, input().split())) +a = list(map(int, input().split())) -for a in list(enumerate(l)): -    a = list(a) -    ans[a[1] - 1] = a[0] + 1 -for _ in ans: -    print(_, " ", end="") +for i, j in enumerate(a, start=1): +    ans[j - 1] = i +for i in range(n): +    print(ans[i], " ", end="")