n = int(eval(input()))

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



ans = [-1] * n

for ind, aa in enumerate(a, 1):

    ans[aa - 1] = ind

print((*ans))

n = int(eval(input()))

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

b = [x[0] for x in sorted(enumerate(a, 1), key=lambda x: x[1])]

print((*b))

n = int(eval(input()))
a = tuple(map(int, input().split()))
ans = [-1] * n
for ind, aa in enumerate(a, 1):
    ans[aa - 1] = ind
print((*ans))

n = int(eval(input()))
a = tuple(map(int, input().split()))
b = [x[0] for x in sorted(enumerate(a, 1), key=lambda x: x[1])]
print((*b))

-ans = [-1] * n -for ind, aa in enumerate(a, 1): -    ans[aa - 1] = ind -print((*ans)) +b = [x[0] for x in sorted(enumerate(a, 1), key=lambda x: x[1])] +print((*b))