#include <bits/stdc++.h>
using namespace std;
int a[5000];
int f[5000];
int p[5000];
int n;
bool ans;
void solve(int k) {
  if (k == n - 1) {
    int count = 0;
    for (int j = 0; j < n - 1; j++) {
      if ((p[j] * p[j + 1]) % 4 == 0) {
        count++;
      }
      if (count == n - 1) {
        ans = true;
      }
    }
  } else {
    for (int i = 0; i < n; i++) {
      if (f[i] == 1) continue;
      f[i] = 1;
      p[i] = a[k];
      solve(k + 1);
      f[i] = 0;
    }
  }
}
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  solve(0);
  if (ans) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
