#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;
}