#include <bits/stdc++.h>
using namespace std;
bool f(int *a, int n) {
  for (int i = 1; i < n; i++) {
    if (a[i] * a[i - 1] % 4 != 0) return false;
  }
  return true;
}
int main() {
  int n;
  cin >> n;
  int a[n];
  sort(a, a + n);
  for (int i = 0; i < n; i++) cin >> a[i];
  do {
    if (f(a, n)) {
      cout << "Yes" << endl;
      return 0;
    }
  } while (next_permutation(a, a + n));
  cout << "No" << endl;
  return 0;
}
