#include <bits/stdc++.h>
using namespace std;
const int N = 300006;
pair<int, int> a[N];
int b[N];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i].first;
    a[i].second = i;
  }
  sort(a, a + n);
  int c = 0;
  for (int i = 0; i < n; i++) {
    a[i].first = max(a[i].first, c + 1);
    c = a[i].first;
    b[a[i].second] = a[i].first;
  }
  for (int i = 0; i < n; i++) cout << b[i] << " ";
}
