#include <bits/stdc++.h>
int main(void) {
  long long int n, i, e = 0, k = 0, u = 0;
  scanf("%lld", &n);
  long long int a[n];
  for (i = 0; i < n; i++) {
    scanf("%lld", &a[i]);
    if (a[i] % 4 == 0)
      e++;
    else if (a[i] % 2 == 0)
      k++;
    else
      u++;
  }
  if (e >= u)
    printf("Yes");
  else if (e == (u - 1) && k == 0)
    printf("Yes");
  else
    printf("NO");
  return 0;
}
