#include <bits/stdc++.h>
int main(void) {
  int a[100000];
  int n;
  int i = 0;
  int t = 0;
  int f = 0;
  scanf("%d", &n);
  while (i < n) {
    scanf("%d", &a[i]);
    i++;
  }
  i = 0;
  while (i < n) {
    if (a[i] % 4) {
      if ((a[i] % 2) == 0) t++;
    } else {
      f++;
    }
    i++;
  }
  if (f >= (n - t - f)) {
    printf("Yes%d %d %d\n", f, (n - t - f), t);
  } else if (t == 0 && (n % 2) == 1 && (f + 1) == (n - t - f)) {
    printf("Yes%d %d %d %d\n", t, (n % 2), (f + 1), (n - t - f));
  } else {
    printf("No%d %d\n", f, (n - t - f));
  }
  return 0;
}
