#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  scanf("%d", &n);
  int x;
  int cnt = 0, tmp = 0;
  for (int i = 1; i <= n; ++i) {
    scanf("%d", &x);
    if (x % 2 == 1) {
      cnt--;
      continue;
    }
    if (x % 4 == 0) {
      cnt++;
      continue;
    }
    if (x % 2 == 0) tmp++;
  }
  if (cnt < -1) printf("No\n");
  if (cnt == -1 && tmp)
    printf("No\n");
  else
    printf("Yes\n");
  return 0;
}
