n = int(input())



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

b = [i for i in range(1,n+1)]



z = zip(a,b)

sorted_z = sorted(z)



new_a = []

new_b = []



for a_dash,b_dash in sorted_z:

	new_a.append(a_dash)

	new_b.append(b_dash)



print(new_b[0],end="")

for i in range(1,n):

	print(" ",end="")

	print(new_b[i],end="")

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

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



tmp = [[num,i+1] for i,num in enumerate(a)]

tmp.sort(key=lambda x: x[0])



ans = [str(i) for j,i in tmp]



print((" ".join(ans)))

n = int(input())
a = list(map(int, input().split()))
b = [i for i in range(1, n + 1)]
z = zip(a, b)
sorted_z = sorted(z)
new_a = []
new_b = []
for a_dash, b_dash in sorted_z:
    new_a.append(a_dash)
    new_b.append(b_dash)
print(new_b[0], end="")
for i in range(1, n):
    print(" ", end="")
    print(new_b[i], end="")

n = list(map(int, input().split()))
a = list(map(int, input().split()))
tmp = [[num, i + 1] for i, num in enumerate(a)]
tmp.sort(key=lambda x: x[0])
ans = [str(i) for j, i in tmp]
print((" ".join(ans)))

-n = int(input()) +n = list(map(int, input().split())) -b = [i for i in range(1, n + 1)] -z = zip(a, b) -sorted_z = sorted(z) -new_a = [] -new_b = [] -for a_dash, b_dash in sorted_z: -    new_a.append(a_dash) -    new_b.append(b_dash) -print(new_b[0], end="") -for i in range(1, n): -    print(" ", end="") -    print(new_b[i], end="") +tmp = [[num, i + 1] for i, num in enumerate(a)] +tmp.sort(key=lambda x: x[0]) +ans = [str(i) for j, i in tmp] +print((" ".join(ans)))