#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int a;
  vector<int> data(3);
  for (int i = 0; i < N; i++) {
    cin >> a;
    if (a % 4 == 0)
      data.at(2)++;
    else if (a % 2 == 0)
      data.at(1)++;
    else
      data.at(0)++;
  }
  if (data.at(0) <= data.at(2))
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
