#include <bits/stdc++.h>
using namespace std;
const long long INF = 1ll * 1e13;
const long long st = (1ll << 31);
const long long MOD = 1000000007;
const int NMAX = 2200000;
int main() {
  ios_base::sync_with_stdio(0);
  int n;
  cin >> n;
  vector<pair<int, int> > a(n);
  map<int, int> m;
  for (int i = 0; i < n; i++) {
    cin >> a[i].first;
    a[i].second = i;
  }
  sort(a.begin(), a.end());
  int cur = 0;
  for (int i = 0; i < n; i++) {
    if (a[i].first > cur)
      cur = a[i].first + 1;
    else
      a[i].first = cur++;
    swap(a[i].first, a[i].second);
  }
  sort(a.begin(), a.end());
  for (int i = 0; i < n; i++) cout << a[i].second << " ";
  return 0;
}
