#include <bits/stdc++.h>
using namespace std;
int main() {
  unsigned long long a, array[1000000], temp;
  cin >> a;
  for (int i = 1; i <= a; i++) {
    cin >> array[i];
  }
  int yes = 0, no = 0;
  for (int i = 1; i < a; i++) {
    temp = array[i] * array[i + 1];
    if (temp % 4 == 0) {
      yes++;
      if (i == 0) break;
    } else
      no++;
  }
  if (yes >= no)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
