#CCBCHBAHAI0000057. Array with Odd Sum (Array with Odd Sum)

    ID: 975 Loại: Thông thường 2000ms 256MiB Tried: 0 Đã chấp nhận: 0 Độ khó: 1 Đăng bởi: Nhãn>Programming language basicsStatic arraysIteration techniquesImplementation techniquesWorking with numbers

Array with Odd Sum (Array with Odd Sum)

Array with Odd Sum (Array with Odd Sum)

Source: Codeforces

Version: Phuoc Hung OJ Extended

Problem

For each test case, an array aa of nn positive integers is given. In one operation choose distinct indices i≠ji\ne j and assign

ai←aj.a_i\leftarrow a_j.

Any number of operations, including zero, may be performed. Determine whether an array with odd total sum can be obtained.

Input

The first line contains tt. Each test case contains nn and then nn integers aia_i.

Output

For each test case print YES if an odd-sum array can be obtained, otherwise print NO.

Subtask

Subtask 1 (20 points): 1≤t≤101\le t\le10, 1≤n≤101\le n\le10.

Subtask 2 (30 points): 1≤t≤1001\le t\le100, ∑n≤200\sum n\le200.

Subtask 3 (50 points): 1≤t≤20001\le t\le2000, 1≤n≤20001\le n\le2000, 1≤ai≤20001\le a_i\le2000, ∑n≤2000\sum n\le2000.

Example

Input

5
2
2 3
4
2 2 8 8
3
3 3 3
4
5 5 5 5
4
1 1 1 1

Output

YES
NO
YES
NO
NO

Explanation

The sample follows the definitions and rules above.