#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  bool flag = false;
  int count = 0;
  int n = N;
  for (int i = 0; i < N; i++) {
    int64_t a;
    cin >> a;
    if (a % 4 == 0) {
      count++;
    } else if (a == 2) {
      if (flag) {
        n--;
      } else {
        flag = true;
      }
    }
  }
  if (count >= n / 2) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
