#include <bits/stdc++.h>
int main() {
  std::ios_base::sync_with_stdio(0);
  long n;
  std::cin >> n;
  std::vector<std::pair<long long, long long> > v;
  long long x;
  for (int i = 0; i < n; i++) {
    std::cin >> x;
    v.push_back(std::make_pair(x, i));
  }
  std::sort(v.begin(), v.end());
  long long prev = v[0].first;
  long long a[300007];
  memset(a, 0, sizeof(a));
  a[v[0].second] = prev;
  for (int i = 1; i < n; i++) {
    x = v[i].first;
    if (x > prev) {
      a[v[i].second] = x;
      prev = x;
    } else {
      a[v[i].second] = prev + 1;
      prev++;
    }
  }
  for (int i = 0; i < n; i++) {
    std::cout << a[i] << " ";
  }
  return 0;
}
