#include <iostream>
using namespace std;

int main() {
	int n,a,two,total;
	cin >> n;
	for(int i = 0;i < n;i++){
	    cin << a;
	    if (a == 2) two++;
	    if (a > 3 && a % 4 == 0) total++;
 	}
 	if (total >= n/2) cout << "Yes";
 	else if (total + twos/2 >= n/2) cout << "Yes";
 	else cout << "NO";
	return 0;
}