#include <bits/stdc++.h>
using namespace std;
vector<pair<long long, long long> > vec;
map<long long, long long> mp;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  long long n, a;
  string str = " ";
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    vec.push_back(make_pair(a, i));
  }
  sort(vec.begin(), vec.end());
  long long temp = vec[0].first;
  for (int i = 1; i < n; i++) {
    if (vec[i - 1].first == vec[i].first) {
      vec[i].first++;
      temp = vec[i].first;
    } else if (vec[i].first <= temp) {
      vec[i].first = temp + 1;
      temp++;
    } else
      temp = vec[i].first;
  }
  for (int i = 0; i < n; i++) {
    mp[vec[i].second] = vec[i].first;
  }
  for (int i = 0; i < n; i++) {
    cout << mp[i] << " ";
  }
  return 0;
}
