#include <bits/stdc++.h>
int mark = 0;
void perm(long int a[], int k, int n) {
  int i, c = 0;
  long int temp;
  if (k == n - 1) {
    for (i = 1; i < n; i++) {
      if (a[i - 1] * a[i] % 4 == 0) c++;
    }
    if (c == n - 1) mark = 1;
  } else {
    for (i = k; i < n; i++) {
      temp = a[k];
      a[k] = a[i];
      a[i] = temp;
      perm(a, k + 1, n);
      temp = a[k];
      a[k] = a[i];
      a[i] = temp;
    }
  }
}
int main() {
  long int n;
  scanf("%ld", &n);
  long int a[n];
  int i = 0;
  for (i = 0; i < n; i++) {
    scanf("%ld", &a[i]);
  }
  perm(a, 0, n);
  if (mark)
    printf("Yes");
  else
    printf("No");
}
