Imagine there is a row of soldiers, indexed from to n-1. They are arranged in such a way that each soldier can only see soldiers with indices from to i-1. We say that a soldier has a clear view if they are not shorter than any soldier directly in front of them. If their view is not clear, it means there is at least one soldier in front who is taller.
We are interested in determining whether each soldier has a clear view or not. If not, we want to find the closest previous soldier who is taller than them.
The first line gives the number of soldiers n~(1 \le n \le 10^5). The second line provides the heights of the soldiers.
Print integers. The -th number should be the index of the closest previous soldier taller than the -th soldier. If the -th soldier has a clear view, print .

Example 1