Solve the programming task below in a Python markdown code block.
Read problems statements in Mandarin chinese, Russian and Vietnamese as well. 

Chef has a sequence A containing N integers A_{1}, A_{2}, ..., A_{N}.

Chef is playing a game with this sequence. In this game, he may perform the following operation any number of times (including zero): Choose an arbitrary pair of elements from the sequence such that their sum is even, delete these two elements from the sequence and insert their sum into the sequence instead.

The goal of the game is to minimise the number of elements in the sequence.

Help Chef to play the game and find the minimum possible size of the sequence at the end of the game!

------ Input ------ 

The first line of the input contains a single integer T denoting the number of test cases. The description of T test cases follows. 
The first line of each test case contains a single integer N.
The second line contains N space-separated integers A_{1}, A_{2}, ..., A_{N}.

------ Output ------ 

For each test case, print a single line containing one integer — the minimum possible final size of the sequence.

------ Constraints ------ 

$1 ≤ T ≤ 100$
$1 ≤ N ≤ 100$
$1 ≤ A_{i} ≤ 1,000 for each valid i$

------ Subtasks ------ 

Subtask #1 (100 points): original constraints

----- Sample Input 1 ------ 
2
2
1 2
5
7 4 3 2 6
----- Sample Output 1 ------ 
2
1