#include <bits/stdc++.h>
using namespace std;
int i, j, k, l, n;
pair<int, int> a[300005];
int r[300005];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> n;
  for (i = 0; i < n; i++) cin >> a[i].first, a[i].second = i;
  sort(a, a + n);
  r[a[0].second] = a[0].first;
  for (i = 1; i < n; i++) {
    if (a[i].first <= a[i - 1].first) {
      a[i].first = a[i - 1].first + 1;
      r[a[i].second] = a[i].first;
    } else
      r[a[i].second] = a[i].first;
  }
  for (i = 0; i < n; i++) cout << r[i] << " ";
  cout << endl;
  return 0;
}
