

n=int(eval(input()))

l=[]

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

for i in range(n):

    l.append((tem[i],i+1))

print((" ".join(list([str(x[1]) for x in sorted(l,key=lambda x: x[0])]))))



n=int(eval(input()))

l=[]

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



print((" ".join(list([str(x[1]) for x in sorted(zip(tem,list(range(1,n+1))),key=lambda x: x[0])]))))

n = int(eval(input()))
l = []
tem = list(map(int, input().split()))
for i in range(n):
    l.append((tem[i], i + 1))
print((" ".join(list([str(x[1]) for x in sorted(l, key=lambda x: x[0])]))))

n = int(eval(input()))
l = []
tem = list(map(int, input().split()))
print(
    (
        " ".join(
            list(
                [
                    str(x[1])
                    for x in sorted(zip(tem, list(range(1, n + 1))), key=lambda x: x[0])
                ]
            )
        )
    )
)

-for i in range(n): -    l.append((tem[i], i + 1)) -print((" ".join(list([str(x[1]) for x in sorted(l, key=lambda x: x[0])])))) +print( +    ( +        " ".join( +            list( +                [ +                    str(x[1]) +                    for x in sorted(zip(tem, list(range(1, n + 1))), key=lambda x: x[0]) +                ] +            ) +        ) +    ) +)