An arithmetic array is an array that contains at least integers and the differences between consecutive integers are equal. For example, [, ], [, , ], and [, , , ] are arithmetic arrays, while [, , , ], [, , ], and [, , ] are not arithmetic arrays.
Sarasvati has an array of non-negative integers. The -th integer of the array is . She wants to choose a contiguous arithmetic subarray from her array that has the maximum length. Please help her to determine the length of the longest contiguous arithmetic subarray.
输入格式
The first line of the input gives the number of test cases, . test cases follow. Each test case begins with a line containing the integer . The second line contains integers. The -th integer is .
输出格式
For each test case, output one line containing Case #x: y, where x is the test case number (starting from ) and y is the length of the longest contiguous arithmetic subarray.
In Sample Case #1, the integers inside the bracket in the following represent the longest contiguous arithmetic subarray: [ ]
In Sample Case #2, the whole array is an arithmetic array, thus the longest contiguous arithmetic subarray is the whole array.
In Sample Case #3, the longest contiguous arithmetic subarray is either [, , ] (a subarray from the fourth integer to the sixth integer) or [, , ] (a subarray from the seventh integer to the ninth integer).
In Sample Case #4, the longest contiguous arithmetic subarray is the last six integers.