Statement
Statement language
people stand in a line and are numbered from left to right. Person has height , and Dadas is person .
Choose one contiguous interval that contains Dadas. Within the chosen interval, Dadas must be strictly taller than every other person.
Find the number of intervals satisfying this condition.
Input
The input is given in the following format:
Each case is given in the following format:
Output
For each test case, print the number of intervals satisfying the condition on one line.
Constraints
- ()
- The sum of over all test cases does not exceed .
Subtasks
Samples
Input
3
5
4 1 3 2 5
4
2 1 2 1
1
7
Output
4
2
1
In the first case, , , , and satisfy the condition.