#include <bits/stdc++.h>
int main() {
  int n, a[100001], tmp = 0, i = 0, tmp2 = 0;
  scanf("%d", &n);
  for (i = 0; i < n - 1; i++) {
    scanf("%d\n", &a[i]);
    if (a[i] % 4 == 0) {
      tmp++;
    }
    if (a[i] % 2 == 0) {
      tmp2++;
    }
  }
  if (n % 2 == 0) {
    if (tmp >= (n / 2)) {
      printf("Yes\n");
    } else if (n - tmp - 1 == tmp2) {
      printf("Yes\n");
    } else {
      printf("No\n");
    }
  } else if (n % 2 != 0) {
    if (tmp >= (n - 1) / 2) {
      printf("Yes\n");
    } else if (n - tmp - 1 == tmp2) {
      printf("Yes\n");
    } else {
      printf("No\n");
    }
  }
  return 0;
}
