#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 cnt2 = 0;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a % 4 == 0)
      cnt4++;
    else if (a % 2 == 0)
      cnt2++;
  }
  if (ceil((N - (cnt2 / 2) * 2) / 3.) <= cnt4)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
