We define the mog value of an array of size as the number of indices (1 \le i \le m) where:
You're given an array of size . You must do the following operation exactly once:
Choose an index (1 \le i \le n) and an integer (-10^9 \le x \le 10^9) and set a_i = x
What's the maximum mog value you can achieve for array ?
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.
The output consists of lines, each containing one value (the maximum mog value you can get after performing the described operation exactly once).
Example 1
Subtask ( points): No additional constraints