

n=int(input())

l=[]

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

for i in range(n):

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

l=sorted(l,key=lambda s: s[0])

for x in range(n):

    if x==0:

        print(l[x][1],end="")

    else:

        print(" %d"%l[x][1],end="")



n=int(eval(input()))

l=[]

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

for i in range(n):

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

l=sorted(l,key=lambda s: s[0])

print((" ".join(list([str(x[1]) for x in l]))))

n = int(input())
l = []
tem = list(map(int, input().split()))
for i in range(n):
    l.append((tem[i], i + 1))
l = sorted(l, key=lambda s: s[0])
for x in range(n):
    if x == 0:
        print(l[x][1], end="")
    else:
        print(" %d" % l[x][1], end="")

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

-n = int(input()) +n = int(eval(input())) -for x in range(n): -    if x == 0: -        print(l[x][1], end="") -    else: -        print(" %d" % l[x][1], end="") +print((" ".join(list([str(x[1]) for x in l]))))