#include <bits/stdc++.h>
using namespace std;
int N;
vector<int> A;
vector<int> S;
bool comp(int a, int b) { return A[a] < A[b]; }
int main() {
  cin >> N;
  A.resize(N);
  S.resize(N);
  for (int i = 0; i < N; i++) cin >> A[i], S[i] = i;
  sort(S.begin(), S.end(), comp);
  long long rat = 0;
  vector<long long> ans(N);
  for (int i = 0; i < N; i++) {
    rat = max(rat + 1, (long long)A[S[i]]);
    ans[S[i]] = rat;
  }
  for (int i = 0; i < N; i++) cout << ans[i] << " ";
  cout << endl;
}
