#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long n;
  long long tw = 0, fo = 0, oth = 0;
  cin >> n;
  bool can = true;
  long long a[n], b[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] % 4 == 0) {
      fo++;
    } else if (a[i] % 2 == 0) {
      tw++;
    } else {
      oth++;
    }
  }
  if (oth == 0) {
    cout << "Yes\n";
  }
  b[0] = 1;
  oth--;
  for (int i = 1; i < n; i++) {
    if (b[i - 1] == 1) {
      if (fo == 0) {
        can = false;
        break;
      } else {
        b[i] = 4;
        fo--;
      }
    } else {
      if (oth == 0) {
        break;
      } else {
        b[i] = 1;
        oth--;
      }
    }
  }
  if (can) {
    cout << "Yes\n";
  } else {
    cout << "No\n";
  }
}
