n = int(input())
a = list(map(int, input().split()))
a_to_index = [0] * n
for i in range(n):
    a_to_index[a[i]-1] = i + 1
a.sort()
ans = [0] * n
for index, ai in enumerate(a):
    ans[index] = a_to_index[ai-1]
print(*ans) n = int(input()) n int(input()) int input() input a = list(map(int, input().split())) a list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split a_to_index = [0] * n a_to_index [0] * n [0] 0 n for i in range(n):
    a_to_index[a[i]-1] = i + 1 i range(n) range n a_to_index[a[i]-1] = i + 1 a_to_index[a[i]-1] a_to_index a[i]-1 a[i] a i 1 i + 1 i 1 a.sort() a.sort a sort ans = [0] * n ans [0] * n [0] 0 n for index, ai in enumerate(a):
    ans[index] = a_to_index[ai-1] index ai enumerate(a) enumerate a ans[index] = a_to_index[ai-1] ans[index] ans index a_to_index[ai-1] a_to_index ai-1 ai 1 print(*ans) print *ans ans ans = [0] * n [0] * n ans a_to_index = [0] * n [0] * n a_to_index n = int(input()) int(input()) n a = list(map(int, input().split())) list(map(int, input().split())) a
n = int(input())
a = list(map(int, input().split()))
a_to_index = [0] * n
for i in range(n):
    a_to_index[a[i]-1] = i + 1
a.sort()
ans = [0] * n
for index, ai in enumerate(a):
    ans[index] = a_to_index[ai-1]
print(*ans)
