#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  unsigned long long N;
  cin >> N;
  unsigned long long cnt4 = 0;
  unsigned long long cnt2 = 0;
  for (int i = 0; i < N; i++) {
    unsigned long long a;
    cin >> a;
    if (a % 4 == 0)
      cnt4++;
    else if (a % 2 == 0)
      cnt2++;
  }
  if (cnt2 > 0) {
    if (ceil((N + (cnt2 >= 2) - cnt2 / 2) / 3.) <= cnt4) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  } else {
    if (ceil(N / 3.) <= cnt4) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
}
