process.stdin.resume();
process.stdin.setEncoding('utf8');
var lines = [];
var n;
var x = [];
var count = 0;
var min;
var k = 1;
var reader = require('readline').createInterface({
    input: process.stdin,
    output: process.stdout
});
reader.on('line', (line) => {
    lines.push(line);
});
reader.on('close', () => {
    n = parseInt(lines[0]);
    x = lines[1].split(' ');
    function re(k) {
        for (var i = 0; i < n; i++) {
            while (parseInt(x[x.length - i]) >= parseInt(x[x.length - i - 1])) {
                x[x.length - i] = parseInt(x[x.length - i]) + k;
                if (parseInt(x[x.length - i]) > parseInt(x[x.length - i + 1])) {
                     k++;
                    return k;
                    re();
                }
                count++;
            }
          k = 1;
        }
    }
    console.log(x.join(' '));
});