#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  int cnt4 = 0;
  int cntO = 0;
  int cnt2 = 0;
  for (int i = 0; i < (n); i++) {
    int tmp;
    cin >> tmp;
    if (tmp % 4 == 0)
      cnt4++;
    else if (tmp % 2)
      cntO++;
    else if (tmp / 2 == 1 && tmp % 2 == 0)
      cnt2++;
  }
  if (cnt4 + 1 >= cntO + cnt2)
    cout << "Yes" << '\n';
  else if (cnt4 == cntO && n - cnt4 - cntO == cnt2)
    cout << "Yes"
         << "\n";
  else
    cout << "No" << '\n';
  return 0;
}
