#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < (int)n; i++) cin >> a[i];
  int cnt_2 = 0;
  int cnt_4 = 0;
  for (int i = 0; i < (int)n; i++) {
    if (a[i] == 2) cnt_2++;
    if (a[i] % 4 == 0) cnt_4++;
  }
  int s = n;
  s -= cnt_2 / 2;
  if (cnt_4 == 0) {
    if (cnt_2 == n)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  } else if ((s - 1) / cnt_4 <= 2)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
