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