#include <bits/stdc++.h>
using namespace std;
pair<int, int> p[300000 + 100];
int res[300000 + 100];
bool Cmp(pair<int, int> A, pair<int, int> B) { return A.first < B.first; }
int main() {
  ios_base::sync_with_stdio(0);
  int n, maX = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> p[i].first;
    p[i].second = i;
  }
  sort(p, p + n, Cmp);
  for (int i = 0; i < n; i++) {
    maX = max(maX + 1, p[i].first);
    res[p[i].second] = maX;
  }
  for (int i = 0; i < n; i++) cout << res[i] << " ";
}
