#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const int INF = 1e9 + 7;
const long double eps = 1e-9;
const int maxn = 111;
int main() {
  ios_base::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<pair<long long, long long> > v;
  for (long long i = 0; i < n; i++) {
    long long x;
    cin >> x;
    v.push_back(make_pair(x, i));
  }
  sort((v).begin(), (v).end());
  for (int i = 1; i < n; i++)
    if (v[i].first <= v[i - 1].first) v[i].first = v[i - 1].first + 1;
  for (int i = 0; i < n; i++) swap(v[i].first, v[i].second);
  sort((v).begin(), (v).end());
  for (int i = 0; i < n; i++) cout << v[i].second << ' ';
  cout << "\n";
  return 0;
}
