#include<stdio.h>
#include<iostream>
#include<string.h>
#include<string>
typedef long long ll;
using namespace std;

ll a[100001];

int main(){
  int N;
  int count = 0;
  int count4 = 0;
  int tmp = 0;
  cin >> N;
  for(int i=0;i<N;i++){
    cin >> a[i];
    tmp = 0;
    while(a[i]%2==0){
      count++;
      tmp ++;
      a[i] /=2;
    }
    if(tmp>=2){
      count4++;
    }
  }
  //cout << count << endl;
  if(count >= 2*(N-1) || (count4 >= N/3 && count4 >= 1){
    cout << "Yes" << endl;
  } else{
    cout << "No" << endl;
  }
  return 0;
}