#include <bits/stdc++.h>
using namespace std;
int N;
vector<int> a;
int main() {
  cin >> N;
  int temp = 0;
  for (int i = 0; i < N; i++) {
    cin >> temp;
    a.push_back(temp);
  }
  double order = ((double)N) / 3;
  double b4 = 0;
  for (int i = 0; i < N; i++) {
    if (a[i] % 4 == 0) {
      b4++;
    }
    if (order <= b4) {
      cout << "Yes" << endl;
      exit(0);
    }
  }
  cout << "No" << endl;
}
