import sys

n= int(eval(input()))

an = list(map(int, sys.stdin.readline().split()))

ans = [0]*n

for i in range(n):

    ans[an[i]-1] = i+1



print((*ans))
import sys

n= int(eval(input()))

an = list(map(int, sys.stdin.readline().split()))

ans = [0]*n

for i in range(n):

    ans[an[i]-1] = str(i+1)



print((' '.join(ans)))
import sys

n = int(eval(input()))
an = list(map(int, sys.stdin.readline().split()))
ans = [0] * n
for i in range(n):
    ans[an[i] - 1] = i + 1
print((*ans))

import sys

n = int(eval(input()))
an = list(map(int, sys.stdin.readline().split()))
ans = [0] * n
for i in range(n):
    ans[an[i] - 1] = str(i + 1)
print((" ".join(ans)))

-    ans[an[i] - 1] = i + 1 -print((*ans)) +    ans[an[i] - 1] = str(i + 1) +print((" ".join(ans)))