#include <bits/stdc++.h>
#pragma warning(disable : 4996)
using namespace std;
const int INF = 0x3f3f3f3f;
const long long int INFLL = 0x3f3f3f3f3f3f3f3f;
pair<int, int> a[300010];
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int n;
  cin >> n;
  for (int i = (1); i <= (n); i++) {
    cin >> a[i].first;
    a[i].second = i;
  }
  sort(a + 1, a + 1 + n);
  vector<pair<int, int> > res(1, {a[1].second, a[1].first});
  for (int i = (2); i <= (n); i++) {
    if (a[i].first <= a[i - 1].first) {
      a[i].first = a[i - 1].first + 1;
    }
    res.emplace_back(a[i].second, a[i].first);
  }
  sort(res.begin(), res.end());
  for (auto it : res) {
    cout << it.second << ' ';
  }
}
