#include <iostream>

using namespace std;

int main() {
	int N;
	cin >> N;

	int cnt4 = 0, cnt2 = 0;
	for (int i = 0; i < N; i++) {
		int tmp;
		cin >> tmp;
		if (tmp % 4 == 0) cnt4++;
		else if (tmp % 2 == 0) cnt2++;
	}

	if (cnt2 == N || cnt4 >= N / 2 || cnt4*2 + cnt2 >= N) cout << "Yes" << endl;
	else cout << "No" << endl;

	return 0;
}