#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  bool yatta = false;
  cin >> N;
  vector<int> a(N), an(N);
  vector<bool> tta(N, false);
  for (int i = 0; i < N; i++) {
    cin >> a.at(i);
  }
  sort(a.begin(), a.end());
  an.at(0) = a.at(0);
  for (int i = 1; i < N; i++) {
    for (int j = 1; j < N; j++) {
      if ((an.at(i - 1) * a.at(j)) % 4 == 0 && tta.at(j) == false) {
        an.at(i) = a.at(j);
        tta.at(j) = true;
        break;
      }
    }
  }
  for (int i = 0; i < N; i++) {
    if (an.at(i) == 0) {
      cout << "No" << endl;
      yatta = true;
      break;
    }
  }
  if (yatta == false) {
    cout << "Yes" << endl;
  }
}
