#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;
  bool isF = false;
  bool isNo = false;
  long i;
  for (i = 0; i < n; i++) {
    cin >> a;
    if (a % 4 == 0) m++;
    if (a == 2) k++;
  }
  for (i = 0; i < n;) {
    if (!isF && 2 <= k) {
      k -= 2;
      i += 2;
      isF = true;
    } else if (isF && 0 < m) {
      m--;
      isF = false;
      i++;
    } else if (!isF) {
      i++;
      isF = true;
    } else {
      isNo = true;
      break;
    }
  }
  if (isNo)
    cout << "No" << endl;
  else
    cout << "Yes" << endl;
  return 0;
}
