n = int(input())
h = list(map(int,input().split()))
q = [0]*n
for i in range(n):
    q[h[i]-1] = i+1
print(*q) n = int(input()) n int(input()) int input() input h = list(map(int,input().split())) h list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split q = [0]*n q [0]*n [0] 0 n for i in range(n):
    q[h[i]-1] = i+1 i range(n) range n q[h[i]-1] = i+1 q[h[i]-1] q h[i]-1 h[i] h i 1 i+1 i 1 print(*q) print *q q h = list(map(int,input().split())) list(map(int,input().split())) h q = [0]*n [0]*n q n = int(input()) int(input()) n
n = int(input())
h = list(map(int,input().split()))
q = [0]*n
for i in range(n):
    q[h[i]-1] = i+1
print(*q)