#include <bits/stdc++.h>
using namespace std;
template <class T>
bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
bool chmin(T &a, const T &b) {
  if (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(0);
  long long n, in;
  cin >> n;
  vector<long long> a, b;
  for (long long i = (0), i_len = (n); i < i_len; ++i) {
    cin >> in;
    a.push_back(in % 4);
    b.push_back(in % 2);
  }
  if (count((a).begin(), (a).end(), 0) + count((b).begin(), (b).end(), 0) >= n)
    cout << (("Yes")) << "\n";
  else
    cout << (("No")) << "\n";
}
