#include <bits/stdc++.h>
using namespace std;
const int N = 100005;
int a[N];
int main() {
  int n, h = 0;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  sort(a + 1, a + n + 1);
  do {
    int p;
    for (p = 1; p <= n - 1; p++) {
      if ((a[p] * a[p + 1]) % 4 == 0)
        continue;
      else
        break;
    }
    if (p == n) {
      h = 1;
      break;
    }
  } while (next_permutation(a + 1, a + n + 1));
  if (h == 1)
    printf("Yes\n");
  else
    printf("No\n");
  return 0;
}
