#include <bits/stdc++.h>
using namespace std;
int v[100003];
int am[3];
inline int type(int a) {
  if (a % 4 == 0) {
    return 0;
  } else if (a % 2 == 0) {
    return 1;
  } else {
    return 2;
  }
}
int main() {
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> v[i];
    am[type(v[i])]++;
  }
  int t;
  am[type(v[1])]--;
  for (int i = 1; i < n; i++) {
    t = type(v[i]);
    if (t == 2) {
      if (am[0] == 0) {
        cout << "No";
        return 0;
      }
      v[i + 1] = 4;
      am[0]--;
    } else if (t == 1) {
      if (am[1] == 0 && am[0] == 0) {
        cout << "No";
        return 0;
      }
      if (am[1] != 0) {
        v[i + 1] = 2;
        am[1]--;
      } else {
        v[i + 1] = 4;
        am[0]--;
      }
    } else {
      if (am[2] == 0 && am[1] == 0 && am[0] == 0) {
        cout << "No";
        return 0;
      }
      if (am[2] != 0) {
        v[i + 1] = 1;
        am[2]--;
      } else if (am[1] != 0) {
        v[i + 1] = 2;
        am[1]--;
      } else {
        v[i + 1] = 4;
        am[0]--;
      }
    }
  }
  cout << "Yes";
  return 0;
}
