#SDNU1172. Queue
Queue
Description
On the PE,the teacher wants to choose some of students to play games. Teacher asks students stand in a line randomly(obviously,they have different height), then teacher tells someone to leave the queue(relative position is not change)to make the left students keep a special queue:
Assuming that the left students’ numbers are …… from left to right and their height are . Then they satisfy
Giving you the height of students (from left to right), please calculate how many students left at most if you want to keep such a special queue.
Format
Input
The first line contains an integer represents the number of students.
The second line contains integers separated by spaces, represent the height(cm) of student .
Output
One integer represents the number of the left students.
Samples
8
186 180 150 183 199 130 190 180
5