#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const int dy[] = {0, 0, 1, -1};
const int dx[] = {1, -1, 0, 0};
template <class T>
void chmin(T& a, const T& b) {
  a = min(a, b);
}
template <class T>
void chmax(T& a, const T& b) {
  a = max(a, b);
}
int a[100000];
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; ++i) scanf("%d", &a[i]);
  int ans = n / 2;
  int two = 0, four = 0;
  for (int i = 0; i < n; ++i) {
    if (a[i] == 2) ++two;
    if (a[i] % 4 == 0) ++four;
  }
  ans -= four;
  two /= 2;
  ans -= two;
  if (ans <= 0)
    printf("Yes\n");
  else
    printf("No\n");
  return 0;
}
