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