#include <bits/stdc++.h>
using namespace std;
int N, pos[100010];
int main() {
  cin >> N;
  for (int i = 0; i < N; i++) {
    int j;
    cin >> j;
    pos[j] = i + 1;
  }
  for (int i = 0; i < N; i++) {
    int j;
    cin >> j;
    cout << pos[j] << " ";
  }
  return 0;
}
