#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int i;
  int a[300000], ans[300000];
  vector<vector<int> > b;
  for (i = 0; i < n; i++) {
    cin >> a[i];
    vector<int> x;
    x.push_back(a[i]);
    x.push_back(i);
    b.push_back(x);
  }
  sort(b.begin(), b.end());
  int m = 1;
  for (i = 0; i < n; i++) {
    if (b[i][0] < m) {
      ans[b[i][1]] = m;
      m += 1;
    } else {
      ans[b[i][1]] = b[i][0];
      m = b[i][0] + 1;
    }
  }
  for (i = 0; i < n; i++) cout << ans[i] << ' ';
  return 0;
}
