#include <bits/stdc++.h>
using namespace std;
bool sortbysec(const pair<int, int> &a, const pair<int, int> &b) {
  return (a.second < b.second);
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  auto start = chrono::high_resolution_clock::now();
  long long n, m = 1e18, c = 0, d = 0, q = 0, curx = 0, cury = 0, mx = 1e18,
               h = 0, l = 0, mn = 1e9 + 7, v = 1e17, w = -100000, u = 0, r = 0,
               k = 0, j = 0, i = 0, ans = 0;
  cin >> n;
  vector<pair<long long, long long>> a(n);
  for (int i = 0; i < n; i++) {
    cin >> d;
    a[i].first = d, a[i].second = i;
  }
  sort(a.begin(), a.end());
  for (int i = 0; i < n; i++) {
    a[i].first = max(h, a[i].first);
    h = a[i].first + 1;
  }
  sort(a.begin(), a.end(), sortbysec);
  for (int i = 0; i < n; i++) {
    cout << a[i].first << " ";
  }
  cout << endl;
}
