#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int cnt = 0, flag_two = 0;
  string ans = "No";
  for (int i = (0); i < (n); ++i) {
    int val;
    cin >> val;
    if (val % 4 == 0) cnt++;
    if (val == 2) {
      flag_two++;
      if (flag_two == 2) {
        cnt++;
        flag_two = 0;
      }
    }
  }
  if (cnt + 1 >= n - cnt) {
    ans = "Yes";
  }
  cout << ans << endl;
  return 0;
}
