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