You are given an array a of length n. Define cnt_x as the number of occurrences of x in a.
Now you can do the following operation at most once: select a non-empty subarray a_l,a_l+1,a_l+2,…,a_r and an integer k∈\[−109,109], and add k to all the elements in the subarray.
Your first task is to find the maximum possible value of W=maxcnt_x∣x∈Z after one operation. Your second task is to find all v such that cnt_v=W can be achieved after one operation.
The first line contains an integer T (1≤T≤20), the number of test cases.
Each test case consists of two lines. The first line contains a single integer n (2≤n≤2⋅105), and the second line contains n integers denoting the array (1≤a_i≤109).
It is guaranteed that ∑n≤5⋅105, and a_i are not all the same.
For each test case, output one integer on the first line, denoting the maximum value W. Then for all integers v satisfying the condition, output them in ascending order.
The values of W for the test cases are 4, 5, 4, 2.