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.
The input is given in the following format:
For each test case, print the number of intervals satisfying the condition on one line.
In the first case, , , , and satisfy the condition.
Each case is given in the following format: