Beginner800

Minus Two

Codeforces
View on Codeforces
Time: 2 secondsMemory: 256 megabytes

You are given an array a_1, a_2, …, a_n. You may perform the following operation:

Find the maximum possible frequency of any integer in a after performing the operation an arbitrary number (possibly zero) of times.

Input

The first line of each input contains an integer t (1 ≤ t ≤ 10^4) — the number of test cases.The first line of each test case contains an integer n (1 ≤ n ≤ 2 · 10^5) — the length of a.The second line of each test case contains n integers a_1, a_2, …, a_n (1 ≤ a_i ≤ 10^9) — the array a.It is guaranteed that the sum of n over all test cases does not exceed 2 · 10^5.

Output

For each test case, output a single integer denoting the maximum possible frequency of any integer in a after performing the operation an arbitrary number of times.

Examples

Input
5 2 1 3 4 1 1 1 2 3 6 7 8 4 2 2 2 2 5 1 10 100 1000 100000
Output
2 3 1 4 3

Note

In the first test case, we can perform the operation once to have a = [|1 - 2|, |3 - 2|] = [1, 1], which means the maximum possible frequency of any integer in a is 2.In the second test case, the maximum frequency of an integer in a is 3. It can be shown that, no matter how many operations we perform, the maximum possible frequency of an integer in a will never exceed 3.

mathnumber theory

Discussion

(0)
Sign in to join the discussion.
Loading editor...
0 online