#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int i, k, a[n + 1];
  a[0] = 0;
  for (i = 1; i <= n; i++) cin >> a[i];
  for (i = 1; i <= n; i++) {
    k = a[i];
    while (a[k] != i) k = a[k];
    cout << k << " ";
  }
  return 0;
}
