#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a=0,b=0,c=0,n,x;
	cin>>n;
	while(n--)
	{
		cin>>x;
		if(x%4==0) a++;
		else if(x%2==0) b++;
		else c++;
	}
	a-=c;
	if(a>=0||(a==-1&&b==0)) cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
	return 0;
}