n=int(eval(input()))

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



num=[i for i in range(1,n+1)]



order=dict(list(zip(num,a)))



order2=sorted(list(order.items()),key=lambda x:x[1])



ans=[]



for i in range(n):

  ans.append(order2[i][0])



print((' '.join([str(n) for n in ans])))
n=int(eval(input()))

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



ans=['-']*n

for i in range(n):

    ans[a[i]-1]=str(i+1)



print((' '.join(ans)))
n = int(eval(input()))
a = list(map(int, input().split()))
num = [i for i in range(1, n + 1)]
order = dict(list(zip(num, a)))
order2 = sorted(list(order.items()), key=lambda x: x[1])
ans = []
for i in range(n):
    ans.append(order2[i][0])
print((" ".join([str(n) for n in ans])))

n = int(eval(input()))
a = list(map(int, input().split()))
ans = ["-"] * n
for i in range(n):
    ans[a[i] - 1] = str(i + 1)
print((" ".join(ans)))

-num = [i for i in range(1, n + 1)] -order = dict(list(zip(num, a))) -order2 = sorted(list(order.items()), key=lambda x: x[1]) -ans = [] +ans = ["-"] * n -    ans.append(order2[i][0]) -print((" ".join([str(n) for n in ans]))) +    ans[a[i] - 1] = str(i + 1) +print((" ".join(ans)))