def q_C(N, arrA):

	res = [0] * N

	for i in range(N):

		res[arrA[i] - 1] = i + 1

	print((*res))



N = int(eval(input()))

arrA = [int(x) for x in input().split()]

q_C(N, arrA)

# C - Go to School

N = int(eval(input()))

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



ans = [0] * N

for i in range(N):

    ans[A[i]-1] = i+1

print((' '.join(map(str, ans))))
def q_C(N, arrA):
    res = [0] * N
    for i in range(N):
        res[arrA[i] - 1] = i + 1
    print((*res))


N = int(eval(input()))
arrA = [int(x) for x in input().split()]
q_C(N, arrA)

# C - Go to School
N = int(eval(input()))
A = list(map(int, input().split()))
ans = [0] * N
for i in range(N):
    ans[A[i] - 1] = i + 1
print((" ".join(map(str, ans))))

-def q_C(N, arrA): -    res = [0] * N -    for i in range(N): -        res[arrA[i] - 1] = i + 1 -    print((*res)) - - +# C - Go to School -arrA = [int(x) for x in input().split()] -q_C(N, arrA) +A = list(map(int, input().split())) +ans = [0] * N +for i in range(N): +    ans[A[i] - 1] = i + 1 +print((" ".join(map(str, ans))))