#include <bits/stdc++.h>
using namespace std;
int kaijo(int n) {
  int ans = 1;
  if (n != 0) {
    for (int i = 0; i < n; i++) {
      ans *= (n - i);
    }
  } else {
    ans = 1;
  }
  return ans;
}
int main() {
  int a[100000];
  int b;
  int cnt2 = 0;
  int cnt4 = 0;
  int n;
  cin >> n;
  for (int i1 = 0; i1 < n; i1++) {
    cin >> a[i1];
    b = a[i1] / 2;
    if (b * 2 == a[i1]) {
      cnt2 += 1;
    }
  }
  if (cnt2 == n) {
    cout << "YES" << endl;
  } else {
    for (int i2 = 0; i2 < n; i2++) {
      b = a[i2] / 4;
      if (b * 4 == a[i2]) {
        cnt4 += 1;
      }
    }
    if (cnt2 != cnt4) {
      if (n - cnt2 <= cnt4) {
        cout << "Yes" << endl;
      } else {
        cout << "No" << endl;
      }
    } else {
      if (n - cnt2 - 1 <= cnt4) {
        cout << "Yes" << endl;
      } else {
        cout << "No" << endl;
      }
    }
  }
  return 0;
}
