#include <bits/stdc++.h>
int n, k, i, j, l;
int a[200];
int main() {
  scanf("%d", &n);
  k = 0;
  for (i = 0; i < n; i++) {
    scanf("%d", &a[i]);
    if (a[i] < 0) k++;
  }
  k = (k + 1) / 2;
  if (k == 0) k = 1;
  printf("%d\n", k);
  j = l = 0;
  for (i = 0; i < n; i++) {
    if (a[i] < 0) j++;
    if (j == 3) {
      printf("%d ", l);
      l = 0;
      j = 1;
    }
    l++;
  }
  if (l > 0) printf("%d\n", l);
  return 0;
}
