#include <bits/stdc++.h>
using namespace std;
void printVec(vector<char> f){
for(int i=0;i<f.size();i++){
cout << f[i];
}
cout << endl;
}
int main() {
int t,n;
cin >> t;
while(t--){
cin >> n;
vector<int> a(n);
int one = 0, two = 0;
for(int i=0;i<n;i++){
cin >> a[i];
a[i] == 1 ? one++ : two++;
}
if(2*((one + 2*two)/2) != (one + 2*two)) cout << "no\n";
else if(two == 0 && one % 2 != 0) cout << "no\n";
else if(one == 0 && two % 2 != 0) cout << "no\n";
else if(one > 0 && two > 0 && one % 2 != 0 && two % 2 != 0) cout << "no\n";
else cout << "yes\n";
}
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7Cgp2b2lkIHByaW50VmVjKHZlY3RvcjxjaGFyPiBmKXsKCWZvcihpbnQgaT0wO2k8Zi5zaXplKCk7aSsrKXsKCQljb3V0IDw8IGZbaV07Cgl9Cgljb3V0IDw8IGVuZGw7Cn0KaW50IG1haW4oKSB7CglpbnQgdCxuOwoJY2luID4+IHQ7Cgl3aGlsZSh0LS0pewoJCWNpbiA+PiBuOwoJCXZlY3RvcjxpbnQ+IGEobik7CgkJaW50IG9uZSA9IDAsIHR3byA9IDA7IAoJCWZvcihpbnQgaT0wO2k8bjtpKyspewoJCQljaW4gPj4gYVtpXTsKCQkJYVtpXSA9PSAxID8gb25lKysgOiB0d28rKzsKCQl9CgkJaWYoMiooKG9uZSArIDIqdHdvKS8yKSAhPSAob25lICsgMip0d28pKQljb3V0IDw8ICJub1xuIjsKCQllbHNlIGlmKHR3byA9PSAwICYmIG9uZSAlIDIgIT0gMCkJY291dCA8PCAibm9cbiI7CgkJZWxzZSBpZihvbmUgPT0gMCAmJiB0d28gJSAyICE9IDApCWNvdXQgPDwgIm5vXG4iOwoJCWVsc2UgaWYob25lID4gMCAmJiB0d28gPiAwICYmIG9uZSAlIDIgIT0gMCAmJiB0d28gJSAyICE9IDApCWNvdXQgPDwgIm5vXG4iOwoJCWVsc2UJY291dCA8PCAieWVzXG4iOwoJfQoJcmV0dXJuIDA7Cn0=