#include <bits/stdc++.h>
using namespace std;
void YN(bool flg) {
  if (flg)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
void Yn(bool flg) {
  if (flg)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
void yn(bool flg) {
  if (flg)
    cout << "yes" << endl;
  else
    cout << "no" << endl;
}
int main() {
  int n;
  cin >> n;
  vector<long long> a(n);
  int cnt = 0, t = 0;
  for (int i = 0; i < (int)(n); i++) {
    cin >> a[i];
    if (a[i] == 2) cnt++;
    if (a[i] % 4 == 0) t++;
  }
  if (cnt >= 1)
    Yn(t >= (n - cnt + 1) / 2);
  else
    Yn(t >= n / 2);
  return 0;
}
