n = int(eval(input()))

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

ans = [i for i in range(n)]

a1 = sorted(a)

for i in range(n):

    num = a[i]

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

    

print((' '.join(ans)))
n = int(eval(input()))

# n,k = map(int,input().split())

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

ans = [0 for _ in range(n)]

for i in range(n):

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

print((" ".join(ans)))
n = int(eval(input()))
a = list(map(int, input().split()))
ans = [i for i in range(n)]
a1 = sorted(a)
for i in range(n):
    num = a[i]
    ans[num - 1] = str(i + 1)
print((" ".join(ans)))

n = int(eval(input()))
# n,k = map(int,input().split())
a = list(map(int, input().split()))
ans = [0 for _ in range(n)]
for i in range(n):
    ans[a[i] - 1] = str(i + 1)
print((" ".join(ans)))

+# n,k = map(int,input().split()) -ans = [i for i in range(n)] -a1 = sorted(a) +ans = [0 for _ in range(n)] -    num = a[i] -    ans[num - 1] = str(i + 1) +    ans[a[i] - 1] = str(i + 1)