#include <bits/stdc++.h>
using namespace std;
int n;
int A[100001];
int main() {
  cin >> n;
  int num_two = 0;
  int seki = 1;
  int num_four = 0;
  int num_eight = 0;
  int num;
  int c;
  for (int i = 1; i <= n; i++) {
    cin >> c;
    if (c == 2) {
      num_two += 1;
      seki *= c;
    }
    if (c % 4 == 0) {
      num_four += 1;
      seki *= c;
    }
    if (c % 8 == 0) {
      num_eight += 1;
    }
  }
  if (n % 2 == 1) {
    num = 2 * (num_four + num_two) + 1;
  } else {
    num = 2 * (num_four + num_two);
  }
  if (num >= n && seki >= pow(4, n / 2) && (num_eight - num_two >= 0)) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
