#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef long long ll;
template <typename T>
ostream& operator<<(ostream& os, vector<T>& v) {
  os << "{";
  for (int i = 0; i < (int)v.size(); i++) {
    os << v[i] << (i < v.size() - 1 ? ", " : "");
  }
  os << "}";
  return os;
}
int main() {
  ll x, y, d = 0, n, m, h, k, max = -100000, min = 10000000, ans = 0, count = 1,
           sum = 0;
  string s;
  cin >> n;
  VI map<int, int> MP;
  (n);
  VI f(3);
  for (int i = 0; i < n; i++) {
    cin >> map<int, int> MP;
    [i];
    if (map<int, int> MP;[i] % 4 == 0)
      f[2]++;
    else if (map<int, int> MP;[i] % 2 == 0 && map<int, int> MP;[i] % 4 != 0)
      f[1]++;
    else
      f[0]++;
  }
  if (f[2] + 1 > f[0] || f[2] > f[1])
    cout << "Yes" << endl;
  else if (f[2] + 1 == f[0] && f[1] == 0)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
