#include #include using namespace std; int T,n,a[1000009],cnt; int main(){ scanf("%d",&T); while(T--){ scanf("%d",&n); cnt=0; for (int i=1;i<=n;i++){ scanf("%d",&a[i]); if (a[i]==0) cnt++; } if (cnt%2==1){ printf("NO\n"); } else printf("YES\n"); } }