#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, count = 0;
  cin >> N;
  int a[N + 10];
  for (int i = 0; i < N; i++) {
    cin >> a[i];
  }
  for (int i = 0; i < N; i++) {
    for (int j = i + 1; j < N; j++) {
      if ((a[j] * a[i]) % 4 == 0) {
        count += 1;
      }
    }
  }
  if (count != 0) {
    if (count % (N - 1) == 0) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  } else {
    cout << "No" << endl;
  }
}
