#include <bits/stdc++.h>
using namespace std;
int arr[100010];
int main() {
  int n, a, b, c, i;
  scanf("%d", &n);
  for (i = 0; i < n; i++) scanf("%d", &arr[i]);
  a = b = c = 0;
  for (i = 0; i < n; i++) {
    if (arr[i] % 4 == 0)
      c++;
    else if (arr[i] % 2 == 0)
      b++;
    else
      a++;
  }
  if (c > 0) {
    if (a > c + 1)
      printf("NO\n");
    else if (a <= c)
      printf("YES\n");
    else {
      if (b > 0)
        printf("NO\n");
      else
        printf("YES\n");
    }
    return 0;
  }
  printf("NO\n");
  return 0;
}
