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