n = int(input())

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

d = {}

for i in range(n):

    d[a[i]] = i+1

d = sorted(d.items())

for i in range(n):

    print(d[i][1], end=' ')

print()

n = int(eval(input()))

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

ans = [0] * n

for i in range(n):

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

print((*ans))

n = int(input())
a = list(map(int, input().split()))
d = {}
for i in range(n):
    d[a[i]] = i + 1
d = sorted(d.items())
for i in range(n):
    print(d[i][1], end=" ")
print()

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

-n = int(input()) +n = int(eval(input())) -d = {} +ans = [0] * n -    d[a[i]] = i + 1 -d = sorted(d.items()) -for i in range(n): -    print(d[i][1], end=" ") -print() +    ans[a[i] - 1] = i + 1 +print((*ans))