N = int(input())

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



aa = sorted(range(N), key=lambda k:A[k])



for x in aa:

    print(x+1,end=" ")

N = int(eval(input()))

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



aa = [0]*N



for i,x in enumerate(A):

    aa[x-1] = i+1

    

print((*aa))
N = int(input())
A = list(map(int, input().split()))
aa = sorted(range(N), key=lambda k: A[k])
for x in aa:
    print(x + 1, end=" ")

N = int(eval(input()))
A = list(map(int, input().split()))
aa = [0] * N
for i, x in enumerate(A):
    aa[x - 1] = i + 1
print((*aa))

-N = int(input()) +N = int(eval(input())) -aa = sorted(range(N), key=lambda k: A[k]) -for x in aa: -    print(x + 1, end=" ") +aa = [0] * N +for i, x in enumerate(A): +    aa[x - 1] = i + 1 +print((*aa))