#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[100005];
  int sum = 1;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    sum = sum * a[i];
  }
  int f = 1;
  for (int i = 0; i < n / 2; i++) {
    f = f * 4;
  }
  sum = sum % f;
  if (sum == 0) {
    cout << "Yes" << endl;
  }
  if (sum != 0) {
    cout << "No" << endl;
  }
  return 0;
}
