n = int(eval(input()))

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

ans = [0]*n

for i in range(n):

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

print((*ans))
n = int(eval(input()))

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

ans = [0]*n

for i in range(n):

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

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

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

-print((*ans)) +print((" ".join(map(str, ans))))