#include <bits/stdc++.h>
using namespace std;
long long x[100010];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> x[i];
  int num = 0;
  for (int i = 0; i < n; i++) {
    int m = 0;
    for (int j = 0; j < n; j++) {
      if (i == j) continue;
      if ((x[i] * x[j]) % 4 == 0) m++;
    }
    if (m >= 2) num++;
  }
  if (n - num <= 2)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
