For arbitrary i ∈ [1, m − 1], if it satisfies that vi ≠ vi+1, we think this compression method is “complete compression”. Otherwise, we think this compression method is “incomplete compression”.
There is an example of “complete compression”:
[10,10,4,4] ⇒ (2,10),(1,4),(1,4)
Today, Jelly gets an array A of length N. Jelly will execute the following three steps in order: Firstly, he can replace some (or all of) “−1” in the array to arbitrary integer he wants. Secondly, he can choose an arbitrary compression method to compress the array.
Thirdly, he will calculate the score of this compression method.
Jelly wants to know the highest score that he can get. Jelly is too busy, so he wants you for help.
The first line contains an integer T, where T is the number of test cases. T test cases follow.For each test case, the first line contains one integer N, where N is the length of the array A.The second line contains N integers A1, A2, ... , AN.• 1 ≤ T ≤ 105.
• 1 ≤ N ≤ 105.
• −1≤Ai ≤106.
• the sum of N in all test cases doesn’t exceed 106.
For each test case, print one line containing “Case #x: y”, where x is the test case number (starting from
1) and y is the highest score that Jelly can get.
For the first case, there is only one way to get the highest score. Firstly, Jelly replaces −1 to 1. Secondly,
Jelly chooses the “complete compression”. Thirdly, Jelly can get 25 points.