#include <bits/stdc++.h>
#include <vector>
#define REP(i,n) for(int i=0;i<n;i++)
#define MOD 1000000007
using namespace std;
typedef long long ll;

int main(){
  ll n;
  cin>>n;
  ll a[n];
  REP(i,n){
    cin>>a[i];
  }
  ll b4,b1;
  b4 =0;
  b1 =0;
  REP(i,n){
    if(b%2==1){
      b1++;
    }else if(b%4==0){
      b4++;
    }
  }
  if(b4>=b1){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
  
  return 0;
}