#include <bits/stdc++.h>
using namespace std;

int main() {
	int N, a;
	cin >> N;
	int c1, c2, c4;
	c1 = c2 = c4 = 0;
	for (int i = 0;i < N;i++) {
		cin >> a;
		if (a % 2) c1++;
		else if (a % 4) c2 = 1;
		else c4++;
	}
	c1 += c2;
	if (c1 > c4 + 1)
		cout << "No" << endl;
	else
		cout << "Yes" << endl;
}