Given f_1,f_2,…,f_n, find a permutation p_1,p_2,…,p_n of integers 1,2,…,n such that, for each i, the length of the longest strictly increasing subsequence ending with p_i is f_i.
The first line contains an integer n (1≤n≤105).
The second line contains n integers f_1,f_2,…,f_n (1≤f_i≤n). It is guaranteed that, for the given input, at least one such permutation p_1,p_2,…,p_n exists.
On the first line, print n integers p_1,p_2,…,p_n. These numbers must form a permutation of integers 1,2,…,n. If there are several possible answers, print any one of them.