#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, p1 = 0, p2 = 0, p4 = 0;
  cin >> n;
  for (int g, i = n; i--;) {
    cin >> g;
    if (g % 4 == 0)
      p4++;
    else if (g % 2 == 0)
      p2++;
    else
      p1++;
  }
  vector<int> v(n, 1);
  for (int i = n - 1; p1 != 0 && i >= 2; i -= 2) v[i] = 0, p1--;
  for (int i = n - 2; p4 != 0 && i >= 2; i -= 2) v[i] = 2, p4--;
  if (p1 != 0) {
    cout << "No";
    return 0;
  }
  for (int i = 1; i < n; i++) {
    v[i - 1] += v[i];
  };
  v.back() = 2;
  for (auto i : v)
    if (i < 2) {
      cout << "No";
      return 0;
    };
  cout << "Yes";
}
