#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int nOver = n / 3;
  if (n % 3 != 0) nOver++;
  int total = 0;
  vector<int> A(n);
  for (int i = 0; i < n; i++) {
    long long temp;
    cin >> temp;
    if (temp % 4 == 0) total++;
  }
  if (total >= nOver)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
