#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  for (int i = (int)(0); i < (int)(N); i++) cin >> a[i];
  int n = 0;
  for (int i = (int)(0); i < (int)(N); i++) {
    if (a[i] % 4 == 0)
      n += 3;
    else if (a[i] % 2 == 0)
      n++;
  }
  if (n >= N)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
