#include <bits/stdc++.h>
using namespace std;

int main(){
  int >N;
  cin >>N;
  vector<int> a(N);
  for(int i=0;i<N;i++){
    cin >>a[i];
    if(a[i]%2 != 0) a[i]=0;
    else if(a[i]%4 != 0) a[i]=1;
    else a[i]=2;
  }
  sort(a.begin(),a.end());
  int fir=0,sec=N;
  for(int i=0;i<N;i++){
    if(a[i] == 0 && a[i+1] == 1) fir = i+1;
  }
  for(int i=0;i<N;i++){
    if(a[i] == 1 && a[i+1] == 2) sec = i+1;
  }
  if(N-sec>=fir) cout << "Yes" <<endl;
  else cout << "No" <<endl;
}
