#include <bits/stdc++.h>
using namespace std;
int n, a[100005], flag = 0;
int main(int argc, char *argv[]) {
  int s1 = 0, s2 = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] % 2)
      s1++;
    else
      s2++;
  }
  if (s1 > s2 + 1)
    cout << "No" << endl;
  else {
    do {
      int i;
      for (i = 1; i < n - 1; i++) {
        if (a[i] * a[i - 1] % 4 != 0) break;
      }
      if (i == n - 1) flag = 1;
      if (flag) break;
    } while (next_permutation(a, a + n));
    if (flag)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
}
