Time limit: 1s
Memory limit: 256MB
Input:
Output:
Bob has sticks. The -th stick has length . He needs to choose a tuple of sticks (, , , ) such that:
- ;
- by moving and rotating the sticks any way you want (without breaking them) you can obtain a parallelogram with sides of lengths .
Task
Bob is interested if there is such a tuple. He asks you to print YES
if you can choose 4 sticks satisfying the above properties, and NO
otherwise.
Input
The first line contains an integer () the number of test cases. Then follows the description of each test case.
The first line of each test case contains a single integer () the number of sticks.
The second line of each test case contains integers () - the length of the sticks.
It is guaranteed that the sum of the values of over all test cases does not exceed .
Output
For each test case, you have to print the answer to Bob's question.
Examples
stdin
3
7
1 2 3 3 1 3 2
8
1 2 3 4 5 6 7 7
4
1 1 1 1
stdout
YES
NO
YES