#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  while (scanf("%d", &n) != EOF) {
    int a, x = 0, y = 0, ou = 0;
    for (int i = 0; i < n; i++) {
      scanf("%d", &a);
      if (a % 4 == 0)
        y++;
      else {
        if (a % 2 == 0)
          ou++;
        else
          x++;
      }
    }
    cout << x << " " << y << " " << ou << endl;
    if (ou == 0) {
      if (x > y + 1)
        printf("No\n");
      else
        printf("Yes\n");
    } else {
      if (x <= y)
        printf("Yes\n");
      else
        printf("No\n");
    }
  }
  return 0;
}
