#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main(void) {
  int n;
  cin >> n;
  ll a[n];
  for (int i = 0; i < (int)(n); i++) cin >> a[i];
  int cnt_4 = 0, cnt_2 = 0;
  for (int i = 0; i < (int)(n); i++) {
    if (a[i] % 4 == 0) cnt_4++;
    if (a[i] % 2 == 0 && a[i] % 4 != 0) cnt_2++;
  }
  n -= cnt_4 * 3;
  n -= cnt_2 / 2 * 2;
  if (n > 0)
    cout << "No" << endl;
  else
    cout << "Yes" << endl;
}
