#include <bits/stdc++.h>
int main(void) {
  int i, j, k, n, m, l;
  scanf("%d", &n);
  k = 0;
  l = 0;
  for (i = 0; i < n; i++) {
    scanf("%d", &m);
    if (m % 4 == 0)
      k++;
    else {
      if (m % 2 == 0) l++;
    }
  }
  if (k >= n / 2)
    printf("YES\n");
  else {
    if (l >= n - (2 * k))
      printf("YES\n");
    else
      printf("NO\n");
  }
  return 0;
}
