#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[10010] = {0}, b[10111] = {0}, c[11110] = {0}, n, f, place[100001] = {0};
  int panda = 0;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> f;
    if (f % 2 == 1) {
      a[0]++;
    } else if (f % 4 == 2) {
      b[0]++;
    } else {
      c[0]++;
    }
  }
  for (int i = 1; i <= n; i++) {
    if (a[0] != 0 && place[i - 1] != 4) {
      a[0]--;
      if (c[0] == 0) {
        panda = 1;
        break;
      } else
        c[0]--;
      place[i] = 1;
    }
  }
  if (n == 1 && c[0] == 0) panda = 1;
  if (panda == 1)
    cout << "No";
  else
    cout << "Yes";
  return 0;
}
