N = int(eval(input()))

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



ans = [i + 1for i, v

       in sorted(enumerate(A), key=lambda x: x[1])]

print((*ans))



N = int(eval(input()))

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



ans = []

for i, _ in sorted(enumerate(X), key=lambda x: x[1]):

    ans.append(i + 1)



print((*ans))

N = int(eval(input()))
A = list(map(int, input().split()))
ans = [i + 1 for i, v in sorted(enumerate(A), key=lambda x: x[1])]
print((*ans))

N = int(eval(input()))
X = list(map(int, input().split()))
ans = []
for i, _ in sorted(enumerate(X), key=lambda x: x[1]):
    ans.append(i + 1)
print((*ans))

-A = list(map(int, input().split())) -ans = [i + 1 for i, v in sorted(enumerate(A), key=lambda x: x[1])] +X = list(map(int, input().split())) +ans = [] +for i, _ in sorted(enumerate(X), key=lambda x: x[1]): +    ans.append(i + 1)