#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n,a[100005],z=0,x=0,y=0;
    cin>>n;
    for(int i=1;i<=n;i++)
    {
    	cin>>a[i];
    	if(a[i]%4==0) x++;
    	if(a[i]%2==0&&a[i]%4!=0) y++;
    	if(a[i]%2!=0) z++;
	}
	if(z>x+1){cout<<"No";return 0;}
	if(y>0&&z>x) cout<<"No";	
	else cout<<"Yes";
    return 0;
} 