Given an array denoting strengths of monsters, we start with an empty battlefield, at each minute , the 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 minute for each .
NOTE:
Input Format:
Output Format:
Constraints: