#include <bits/stdc++.h>
using namespace std;
pair<int, int> num[100100];
int mark[100100], ans[100100], mp[100100];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  int ptr = 1;
  set<int> S;
  for (int i = 1; i <= n; i++) S.insert(i);
  for (int i = 1; i <= n; i++) {
    cin >> num[i].first, num[i].second = i;
    if (S.find(num[i].first) != S.end()) S.erase(num[i].first);
  }
  sort(num + 1, num + n + 1);
  for (int i = 1; i <= n; i++) {
    if (num[i].first > n || mark[num[i].first] == 1) {
      ans[num[i].second] = *S.begin();
      S.erase(*S.begin());
    } else {
      mark[num[i].first] = 1;
      ans[num[i].second] = num[i].first;
    }
  }
  for (int i = 1; i <= n; i++) cout << ans[i] << " ";
  cout << "\n";
}
