#include <bits/stdc++.h>
int main() {
  int a[100005];
  int n;
  scanf("%d", &n);
  int f1 = 0, f2 = 0;
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i]);
    if (a[i] % 4 == 0)
      f1++;
    else if (a[i] % 2 == 0)
      f2++;
  }
  if (f2 == n || n - f2 - f1 <= f1)
    printf("Yes\n");
  else
    printf("No\n");
}
