Prefixmaxxing#12421

Prefixmaxxing

1 second
256 megabytes
Hard

We define the mog value of an array of size as the number of indices (1 \le i \le m) where:

A_i = \max(A_1,A_2,...,A_i)

You're given an array of size . You must do the following operation exactly once:

What's the maximum mog value you can achieve for array ?

Input

The first line consists of a single integer (1 \le t \le 2 \cdot 10^5)the number of testcases.

The description of each testcase follows.

The first line of each testcase contains an integer (1 \le n \le 2 \cdot 10^5)the size of array .

The next line contains integers a_1 , a_2 , ... , a_n (-10^9 \le a_i \le 10^9)the elements of array .

It is guaranteed that the sum of over all test cases does not exceed 2 \cdot 10^5.

Output

The output consists of lines, each containing one value (the maximum mog value you can get after performing the described operation exactly once).

Examples

Example 1

Loading
Loading

Scoring

  • Subtask ( points): No additional constraints