#include <bits/stdc++.h>
using namespace std;
int modulo = 1000000007;
int quotient(int a) {
  int b = 0;
  if (a % 2 == 0) {
    b++;
    a /= 2;
    if (a % 2 == 0) {
      b++;
    }
  }
  return b;
}
int main() {
  int N;
  cin >> N;
  int count = 0;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    count += quotient(a);
  }
  if (count >= N)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
