#include<bits/stdc++.h>

#define INF 1e9
#define llINF 1e18
#define MOD 1e9+7
#define pb push_back
#define mp make_pair 
#define F first
#define S second
#define ll long long
using namespace std;
int main(){
  int n;cin>>n;
  vector<int>num(n);
  int yon=0,ni=0;
  for(int i=0;i<n;i++){
    cin>>num[i];
    if(num[i]%4==0)yon++;
    else if(ni[i]%2==0)ni++;
  }
  if(yon>=(n)/2-ni/2)
    cout<<"Yes"<<endl;
  else
    cout<<"No"<<endl;
  return 0;
}
