n= int(eval(input()))

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



x = [0 for i in range(len(a))]



for i,v in enumerate(a):

	x[v-1] = str(i+1)



print((' '.join(x)))
n= int(eval(input()))

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



x = [0] * len(a)



for i,v in enumerate(a):

	x[v-1] = str(i+1)



print((' '.join(x)))
n = int(eval(input()))
a = list(map(int, input().split()))
x = [0 for i in range(len(a))]
for i, v in enumerate(a):
    x[v - 1] = str(i + 1)
print((" ".join(x)))

n = int(eval(input()))
a = list(map(int, input().split()))
x = [0] * len(a)
for i, v in enumerate(a):
    x[v - 1] = str(i + 1)
print((" ".join(x)))

-x = [0 for i in range(len(a))] +x = [0] * len(a)