#include <bits/stdc++.h>
int main() {
  int N, jishu = 0, a2 = 0, a4 = 0;
  scanf("%d", &N);
  for (int i = 0; i < N; i++) {
    int n;
    scanf("%d", &n);
    if (n % 2 == 1)
      jishu++;
    else if (n % 4 == 0)
      a4++;
    else
      a2++;
  }
  if (jishu > a4 + 1)
    printf("NO");
  else if (jishu == a4 + 1)
    if (a2 > 0)
      printf("NO");
    else
      printf("YES");
  else
    printf("YES");
  return 0;
}
