Problem
You are given an integer . Consider the sequence containing the integers in increasing order (each exactly once). Find the maximum length of its contiguous subsequence with an even sum.
Input Format
- The first line of the input contains a single integer denoting the number of test cases. The description of test cases follows.
- The first and only line of each test case contains a single integer .
Output Format
For each test case, print a single line containing one integer --- the maximum length of a contiguous subsequence with even sum.
Constraints
Subtasks
Subtask #1 (100 points): original constraints
Sample 1:
Input
Output
3
3
4
5
3
4
4
Explanation:
Example case 1: The optimal choice is to choose the entire sequence, since the sum of all its elements is , which is even.
Example case 3: One of the optimal choices is to choose the subsequence , which has an even sum.
ANSWER