#include <bits/stdc++.h>
using ll = long long;
using namespace std;
int main() {
  ll N;
  cin >> N;
  vector<ll> A(N);
  int zero = 0;
  int one = 0;
  int two = 0;
  for (int i = 0; i < N; i++) {
    cin >> A[i];
    if (A[i] % 4 == 0) {
      two++;
    } else if (A[i] % 2 == 0) {
      one++;
    } else {
      zero++;
    }
  }
  cout << zero << " " << one << " " << two << endl;
  if (zero + one <= two) {
    cout << "Yes" << endl;
  } else if (zero > two + 1) {
    cout << "No" << endl;
  } else
    cout << "Yes" << endl;
  return 0;
}
