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