#include #include using namespace std; int cmp(int a, int b) { return a > b; } int mins(int a, int b) { if (a < b) return a; return b; } int abss(int a) { if (a < 0) return -a; return a; } int main() { int n; scanf("%d", &n); while (scanf("%d", &n) != EOF) { int cntnum = 0; int t = 0; for (int i = 0; i < n; i++) { scanf("%d", &t); if (t == 0) cntnum++; } if (cntnum % 2 == 1) { printf("NO\n"); } else { printf("YES\n"); } } return 0; }