#include <bits/stdc++.h>
const int OO = (long long)2e9;
const double eps = 1e-9;
const long long MAX = 300001;
const long long MOD = 1000000007;
using namespace std;
long long n, Min;
pair<long long, long long> arr[MAX], tmp[MAX];
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  cin >> n;
  for (int i = (0); i < (n); ++i) {
    cin >> arr[i].first;
    arr[i].second = i;
  }
  sort(arr, arr + n);
  Min = arr[0].first;
  for (int i = (0); i < (n); ++i) {
    arr[i].first = max(Min, arr[i].first);
    Min = (max(Min, arr[i].first)) + 1;
  }
  for (int i = (0); i < (n); ++i) {
    tmp[i].first = arr[i].second;
    tmp[i].second = arr[i].first;
  }
  sort(tmp, tmp + n);
  for (int i = (0); i < (n); ++i) cout << tmp[i].second << ' ';
  return 0;
}
