int main()
{
	int t;
	cin>>t;
	int cc=t;
	int result[10]={0};
	while(t)
	{
		int n=0;
		cin>>n;
		int tmp_n=n;
		int count4=0;
		int count2=0;
		while(n)
		{
			long long tmp=0;
			cin>>tmp;
			if(tmp%4==0)
				count4+=1;
			else if(tmp%2==0)
				count2+=1;
			n--;
		}
		t--;
		if((tmp_n/2)<=(count4+count2/2))
		{
			result[t]=1;
		}
	}
	for(int i =cc-1;i>=0;i--)
	{
		if(result[i]==1)
			cout<<"Yes"<<endl;
		else
			cout<<"No"<<endl;
	}
	return 0;

}