#include<bits/stdc++.h>
using namespace std;
#define MOD 1000000007
#define BIG 1000000010
#define repi(i,x,n) for(int i=x;i<n;i++)
#define rep(i,n) repi(i,0,n)
#define repn(i,n) for(int i=n;i>=0;i--)
typedef long long int ll;


int main(){
  int n;
  int a[100000];
  int p=0;
  cin>>n;
  rep(i,n){
    cin>>a[i];
    if(a%4==0) a[i]=2;
    else if(a%2==0) a[i]=1;
    else a[i]=0;
    p+=a[i];
  }
  if(p<n) cout<<"No"<<endl;
  else cout<<"Yes"<<endl;

  return 0;
}




