#include <bits/stdc++.h>
using namespace std;
template <typename T>
using keyVal = pair<string, T>;
template <typename T>
bool val_greater(const keyVal<T>& left, const keyVal<T>& right) {
  return left.second > right.second;
}
vector<string> split(string str, char sep) {
  vector<string> v;
  stringstream ss(str);
  string t;
  while (getline(ss, t, sep)) v.push_back(t);
  return v;
}
vector<string> re_search_g(string s, regex re) {
  vector<string> ret;
  smatch mc;
  auto it = s.cbegin();
  while (regex_search(it, s.cend(), mc, re)) {
    ret.push_back(mc[0]);
    it += mc.position(0) + mc.length();
  }
  return ret;
}
void init_global_C() {}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  vector<int> a(N);
  for (int i = int(0); i < int(N); ++i) cin >> a[i];
  int cnt2 = 0;
  vector<int> b;
  for (int i = int(0); i < int(N); ++i) {
    if (a[i] == 2)
      cnt2++;
    else
      b.push_back(a[i]);
  }
  int cnt4 = cnt2 / 2;
  cnt2 = cnt2 % 2;
  for (int i = int(0); i < int(cnt4); ++i) b.push_back(4);
  if (cnt2 > 0) b.push_back(2);
  int L = b.size();
  int cnt4d = 0;
  for (int i = int(0); i < int(L); ++i) {
    if (b[i] % 4 == 0) cnt4d++;
  }
  string ans = cnt4d >= L / 2 ? "Yes" : "No";
  cout << ans << endl;
  return 0;
}
