There is a sequence of length $$$n$$$, and the weight of the $$$i$$$-th number is $$$a_i$$$. Two players, A and B, are playing a game, taking turns to operate on the sequence. Each player has two options to choose from:
If the final total weight obtained by A is greater, then A wins; otherwise, B wins.
A goes first to make a move. Determine if A has a winning strategy. It is guaranteed that the sum of $$$a_i$$$ is odd.
This problem contains multiple test cases.
The first line contains an integer $$$T$$$ ($$$1\leq T\leq 10^5$$$), indicating the number of test cases.
For each test case, the input format is as follows.
The first line contains an integer $$$n$$$ ($$$1\leq n\leq 5 \times 10^5$$$), indicating the initial length of the sequence.
The second line contains $$$n$$$ integers $$$a_1,a_2,\ldots,a_n$$$ ($$$1\leq a_i\leq 10^9$$$), representing the initial sequence.
It is guaranteed that $$$\sum n\leq 10^6$$$ and $$$\sum a_i$$$ is odd.
For each test case, if A has a winning strategy, output YES; otherwise, output NO.
333 6 421 232 5 6
NO YES NO
Explanation for Example 1:
In all cases, B can obtain a higher weight with the optimal strategy, so A cannot win.
Explanation for Example 2:
If A chooses the weight $$$2$$$, then B can obtain a weight of $$$1$$$.
Therefore, A has a winning strategy.
| Name |
|---|


