n = int(eval(input()))

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

b = []

for i, a in enumerate(A):

    b.append([a, i+1])

b.sort()

ans = []

for c in b:

    ans.append(c[1])

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

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

b = [0]*n

for i, a in enumerate(A):

    b[a-1] = i+1

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

n = int(eval(input()))
A = list(map(int, input().split()))
b = [0] * n
for i, a in enumerate(A):
    b[a - 1] = i + 1
print((*b))

-b = [] +b = [0] * n -    b.append([a, i + 1]) -b.sort() -ans = [] -for c in b: -    ans.append(c[1]) -print((*ans)) +    b[a - 1] = i + 1 +print((*b))