#include <bits/stdc++.h>
using namespace std;
int main(int argc, char* argv[]) {
  int a[100000];
  int b[100000];
  int c[100000];
  int N;
  int tmp;
  scanf("%d", &N);
  int i = 0, j = 0, k = 0;
  for (int i = 0; i < N; i++) {
    scanf("%d", &tmp);
    if (tmp % 4 == 0)
      a[i++] = tmp;
    else if (tmp % 2 == 0)
      b[j++] = tmp;
    else {
      c[k++] = tmp;
    }
  }
  if (k > j) {
    if (j == 1 || k > j + 1) printf("No");
  } else
    printf("Yes");
  return 0;
}
