n=int(input())

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



d={}

for i in range(n):

  d[al[i]]=i+1



l=[]

for k,v in sorted(d.items()):

  l.append(v)

  

print(*l,sep=" ")

n=int(eval(input()))

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

l=[0 for i in range(n)]

for i in range(n):

    l[al[i]-1]=str(i+1)

print((" ".join(l)))

n = int(input())
al = list(map(int, input().split()))
d = {}
for i in range(n):
    d[al[i]] = i + 1
l = []
for k, v in sorted(d.items()):
    l.append(v)
print(*l, sep=" ")

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

-n = int(input()) +n = int(eval(input())) -d = {} +l = [0 for i in range(n)] -    d[al[i]] = i + 1 -l = [] -for k, v in sorted(d.items()): -    l.append(v) -print(*l, sep=" ") +    l[al[i] - 1] = str(i + 1) +print((" ".join(l)))