#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  vector<int> a;
  int count4 = 0, count2 = 0;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    a.push_back(x);
    if (x % 4 == 0)
      count4++;
    else if (x % 2 == 0)
      count2++;
  }
  if (count4 + (count2 / 2) >= (n / 4) + 1)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
