n = int(eval(input()))

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

b=[]

for i in range(1,n+1):

    b.append(i)



a, b = list(zip(*sorted(zip(a,b))))

print((*b))
n = int(eval(input()))

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

b=[0]*n

for i,a in enumerate(a):

    b[a-1]=i+1

print((*b))
n = int(eval(input()))
a = list(map(int, input().split()))
b = []
for i in range(1, n + 1):
    b.append(i)
a, b = list(zip(*sorted(zip(a, b))))
print((*b))

n = int(eval(input()))
a = list(map(int, input().split()))
b = [0] * n
for i, a in enumerate(a):
    b[a - 1] = i + 1
print((*b))

-b = [] -for i in range(1, n + 1): -    b.append(i) -a, b = list(zip(*sorted(zip(a, b)))) +b = [0] * n +for i, a in enumerate(a): +    b[a - 1] = i + 1