#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a[300005], i, b, p;
  vector<pair<int, int> > test;
  scanf("%d", &n);
  for (i = 1; i <= n; i++) {
    scanf("%d", &b);
    test.push_back(make_pair(b, i));
  }
  sort(test.begin(), test.end());
  p = -1;
  for (i = 0; i < n; i++) {
    if (test[i].first > p) p = test[i].first;
    a[test[i].second] = p;
    p++;
  }
  for (i = 1; i <= n; i++) printf("%d ", a[i]);
  printf("\n");
  return 0;
}
