#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  int a;
  int two = 0, four = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a == 2) {
      two++;
    }
    if (a % 4 == 0) {
      four++;
    }
  }
  if (n - four - two / 2 > n / 2 + n % 2) {
    cout << "No" << '\n';
  } else {
    cout << "Yes" << '\n';
  }
  return 0;
}
