#include <iostream>
#include <vector>
using namespace std;
vector<vector<int>> getLists(){
int listNum;
cin >> listNum;
vector<vector<int>> lists;
for (int i = 0; i < listNum; i++) {
int listLen = 0;
cin >> listLen;
vector<int> list;
for (int i = 0; i < listLen; i++) {
int num;
cin >> num;
list.push_back(num);
}
lists.push_back(list);
list.clear();
}
return lists;
}
int getmul4numsCount(vector<int> list){
int count = 0;
for (int i = 0; i < list.size(); i++) {
if (list[i] == 0) {
break;
}
if (list[i] % 4 == 0) {
count ++;
}
}
return count;
}
bool testIsTrueList(vector<int> list){
int num = getmul4numsCount(list);
int needNums = (int)(list.size() / 2);
return num >= needNums;
}
int main(int argc, const char * argv[]) {
vector<vector<int>> lists = getLists();
for (int i = 0; i < lists.size(); i++) {
if (testIsTrueList(lists[i])) {
cout << "Yes" << endl;
}else{
cout << "No" << endl;
}
}
return 0;
}