#include <iostream>
#include <vector>

using namesapce std;

int main(){
  int N;
  cin >> N;
  vector <long  long int> V(N);
  
  int x2 = 0;
  int x4 = 0;
  
  for(int i = 0; i < N; i++){
    cin >> V[i];
    if(V[i] % 2 == 0) x2++;
    if(V[i] % 4 == 0) x4++;
    //x2 - x4 devidable only by 2
  }
  
  string ans = "";
  if(x2 >= N) ans = "YES";
  esle if(x4 >= (N+1) /2) ans = "YES";
  else if(2*x4 - x2 >= (N - (x2-x4) + 1)/2) ans = "YES";
  else ans = "NO";
  
  cout << ans;


}