#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int count4 = 0;
  int count2 = 0;
  int all = 0;
  int a;
  for (int i = 0; i < (int)(n); ++i) {
    cin >> a;
    all++;
    if (a % 4 == 0) {
      count4++;
    } else if (a == 2) {
      count2++;
    }
  }
  count2 -= count2 % 2;
  if (count4 >= (all - count2) / 2) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
