#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<long long> A(N);
  for (int i = 0; i < (int)(N); i++) {
    cin >> A[i];
  }
  for (int i = 0; i < (int)(N); i++) {
    long long x = A[i];
    long long y = 1;
    while (x % 2 == 0) {
      y *= 2;
      x /= 2;
    }
    if (y >= 4) y = 4;
    A[i] = y;
  }
  int cnt1 = 0;
  int cnt2 = 0;
  int cnt4 = 0;
  for (int i = 0; i < (int)(N); i++) {
    switch (A[i]) {
      case 1:
        cnt1++;
        break;
      case 2:
        cnt2++;
        break;
      case 4:
        cnt4++;
        break;
      default:
        cout << "error" << endl;
    }
  }
  if (cnt2 == 1) cnt1++;
  if (cnt4 >= (cnt1 - 1)) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
