#include <bits/stdc++.h>
int visited[100000];
using namespace std;
int main() {
  long long n, array[100000], temp;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> array[i];
  }
  int p = 0, check = 0;
  for (int j = 1; j < n; j++) {
    p = 0, check = 0;
    for (int k = j; k < n; k++) {
      temp = array[k] * array[k + 1];
      if (temp % 4 == 0 && visited[k + 1] == 0) {
        visited[k + 1] = 1;
        p = 1;
        check = 1;
        break;
      }
    }
    if (p == 0) break;
  }
  if (check == 1)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
