#include <bits/stdc++.h>
using namespace std;
int func(int n) {
  int c = 0;
  while ((n % 2) == 0) {
    n /= 2;
    c++;
  }
  return c;
}
int main() {
  int n;
  cin >> n;
  int a[n];
  int m[3];
  memset(m, 0, sizeof(m));
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    int p = func(a[i]);
    if (p >= 2)
      m[2]++;
    else
      m[p]++;
  }
  if (!m[2] && m[0]) {
    cout << "No";
    return 0;
  }
  if (m[0]) {
    if (m[1]) {
      if (m[0] > m[2] + 1) {
        cout << "No";
        return 0;
      }
    } else {
      if (m[0] > m[2]) {
        cout << "No";
        return 0;
      }
    }
  }
  cout << "Yes";
  return 0;
}
