You are given an array A containing N integers. Find if it is possible to rearrange the elements of the array such that the parity of the sum of each pair of adjacent elements is equal (formally, parity(Ai+Ai+1)=parity(Aj+Aj+1) for each 1≤i<j≤N−1 ).
Here, parity refers to the remainder obtained when a number is divided by 2 (i.e. parity(x)=xmod2).
Input format
Output format
For each test case, print "YES"(without quotes) if it is possible to reorder the array elements to satisfy the given condition and "NO"(without quotes) otherwise.
Constraints
1≤T≤1001≤N≤1001≤Ai≤100
The first test case
The second test case
The third test case