n=int(eval(input()))

a=[int(_) for _ in input().split()]

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

aa.sort()

b=[str(aa[i][1]) for i in range(n)]

print((' '.join(b)))

n=int(eval(input()))

a=[int(_) for _ in input().split()]

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

b.sort()

print((*[b[i][1] for i in range(n)]))
n = int(eval(input()))
a = [int(_) for _ in input().split()]
aa = [[a[i], i + 1] for i in range(n)]
aa.sort()
b = [str(aa[i][1]) for i in range(n)]
print((" ".join(b)))

n = int(eval(input()))
a = [int(_) for _ in input().split()]
b = [[a[i], i + 1] for i in range(n)]
b.sort()
print((*[b[i][1] for i in range(n)]))

-aa = [[a[i], i + 1] for i in range(n)] -aa.sort() -b = [str(aa[i][1]) for i in range(n)] -print((" ".join(b))) +b = [[a[i], i + 1] for i in range(n)] +b.sort() +print((*[b[i][1] for i in range(n)]))