n = int(eval(input()))

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

a = list(enumerate(a, 1))

a = sorted(a, key=lambda x:x[1])

res = [a[i][0] for i in range(n)]

print((*res))
n=int(input())

arr=[int(i) for i in input().split()]

dic={}

for i in range(n):

    dic[arr[i]]=i+1

ans=[]

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

    ans.append(dic[i])

for i in ans:

    print(i,end=" ")

n = int(eval(input()))
a = list(map(int, input().split()))
a = list(enumerate(a, 1))
a = sorted(a, key=lambda x: x[1])
res = [a[i][0] for i in range(n)]
print((*res))

n = int(input())
arr = [int(i) for i in input().split()]
dic = {}
for i in range(n):
    dic[arr[i]] = i + 1
ans = []
for i in range(1, n + 1):
    ans.append(dic[i])
for i in ans:
    print(i, end=" ")

-n = int(eval(input())) -a = list(map(int, input().split())) -a = list(enumerate(a, 1)) -a = sorted(a, key=lambda x: x[1]) -res = [a[i][0] for i in range(n)] -print((*res)) +n = int(input()) +arr = [int(i) for i in input().split()] +dic = {} +for i in range(n): +    dic[arr[i]] = i + 1 +ans = [] +for i in range(1, n + 1): +    ans.append(dic[i]) +for i in ans: +    print(i, end=" ")