Given an array monsters denoting strengths of N monsters, we start with an empty battlefield, at each minute i, the ith monster joins the battlefield and kills all monsters whose strength is less than or equal to his strength.
Find the number of monsters alive in the battlefield at end of ith minute for each 0≤i<N.
NOTE:
Input Format:
Output Format:
Constraints: