#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 10;
const int mod = 1e9 + 7;
char s[1010];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, m;
  int cnt2 = 0, cnt4 = 0;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> m;
    if (m % 4 == 0) {
      cnt4++;
    } else if (m % 2 == 0) {
      cnt2++;
    }
  }
  if (cnt2 != 0) n -= (cnt2 - 1);
  cout << n << ' ' << cnt4 << ' ' << cnt2 << endl;
  if (cnt4 >= ceil(1.0 * (n - 1) / 2)) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
