n = int(eval(input()))



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

ail = []

for i,a in enumerate(al):

    ail.append((a,i+1))



ail.sort()

ans = []

for a,i in ail:

    ans.append(i)



print((*ans))
n = int(eval(input()))

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

ail = []

for i,a in enumerate(al):

    ail.append((a,i+1))



ail.sort()

ans = []

for i,a in ail:

    ans.append(a)



print((*ans))
n = int(eval(input()))
al = list(map(int, input().split()))
ail = []
for i, a in enumerate(al):
    ail.append((a, i + 1))
ail.sort()
ans = []
for a, i in ail:
    ans.append(i)
print((*ans))

n = int(eval(input()))
al = list(map(int, input().split()))
ail = []
for i, a in enumerate(al):
    ail.append((a, i + 1))
ail.sort()
ans = []
for i, a in ail:
    ans.append(a)
print((*ans))

-for a, i in ail: -    ans.append(i) +for i, a in ail: +    ans.append(a)