#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  long n;
  cin >> n;
  long long a;
  long long m = 0;
  long long k = 0;
  long i, len = n / 2;
  for (i = 0; i < n; i++) {
    cin >> a;
    if (a % 4 == 0) m++;
    if (a == 2) k++;
  }
  if (len / 2 < m) m += (k / 2);
  if (len <= m)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
