#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  unsigned long long N;
  cin >> N;
  unsigned long long cnt4 = 0;
  unsigned long long cnt2 = 0;
  unsigned long long cnt1 = 0;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a % 4 == 0)
      cnt4++;
    else if (a % 2 == 0)
      cnt2++;
    else
      cnt1++;
  }
  if (cnt2 > 0) cnt1++;
  if (ceil(cnt1 / 2.) <= cnt4) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
