#include <bits/stdc++.h>
using namespace std;
int cnt4, cnt2, n;
long long int a;
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%lld", &a);
    if (a % 4 == 0)
      cnt4++;
    else if (a % 2 == 0)
      cnt2++;
  }
  if (cnt2 == 0 && cnt4 * 2 >= n - 1)
    printf("YES\n");
  else if (cnt4 * 2 + cnt2 >= n)
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}
