#include<iostream>

using namespace std;

int main(void)
{
	int n;
	cin >> n;

	int c2=0,c4=0;
	for(int i=1;i<=n;i++)
	{
		int a;
		cin >> a;
		if(a%2==0)c2++;
		if(a%4==0)c4++;
	}

	cout << ((c4+1==n-c2 && c2==c4)||(c4>=n-c2) ? "Yes" : "No") << endl;
}