#include <bits/stdc++.h>
using namespace std;
int main() {
  int64_t n, xn, sum = 0;
  cin >> n;
  xn = n;
  for (int64_t i = (0); i < (n); i++) {
    int64_t x;
    cin >> x;
    if (x == 2) xn--;
    if (x % 4 == 0) sum++;
  }
  if ((n - xn) % 2 == 1) xn++;
  if (2 * sum + 1 >= xn)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
