#include<bits/stdc++.h>
#include <conio.h>
#include <string>
using namespace std;
long long s ,n ,m ,a[100001] ,dp[100001] ,d[10001];
int main(){
	int i ,j ;
	cin >> n;
	dp[0]=1000000;
	
	for(i = 1 ; i <= n ; i++){
		cin>>a[i];
	}
	
	for(i = 1 ; i <= n ; i++){
		for(j = 1 ; j <= n ; j++ ){
			if(a[i]*a[j]%4==0&& i != j&& dp[i-1]!=dp[i-2]){
				m++;
				dp[i]=j;
				break;
			}
			//cout << m << " " << dp[i-1] << endl;
		}
	}
	
	if(m+1 >= n){
		cout<<"Yes";
	}
	else{
		cout<<"No";
	}
	return 0;
}
