You are given a permutation of size N. For each i, print the number of indices j=i, which when removed, decreases the maximum possible length of an increasing subsequence that contains index i.
입력
The first line contains an integer N.
The next line contains N integers A_1,A_2,⋯,A_N.
출력
Print N integers, separated by spaces, denoting the answers for i=1,2,3,⋯,N.