#include <bits/stdc++.h>
int main() {
  int n;
  scanf("%d", &n);
  int num[n];
  int count = 0;
  for (int i = 0; i < n; i++) {
    scanf("%d", &num[i]);
    if (num[i] % 4 == 0 && num[i] >= 4) count++;
  }
  int temp = n / 3 + n % 3;
  if (temp <= count)
    printf("Yes");
  else
    printf("No");
  return 0;
}
