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