#include <bits/stdc++.h>
int main() {
  int n, i, a[101], b[101], count, j, k;
  while ((scanf("%d", &n)) != EOF) {
    j = 0;
    k = 0;
    count = 0;
    memset(b, 0, sizeof(b));
    for (i = 0; i < n; i++) {
      scanf("%d", &a[i]);
      if (a[i] < 0) {
        count = count + 1;
        if (count > 2) {
          j = j + 1;
          count = 1;
          b[j] = b[j] + 1;
        } else {
          b[j] = b[j] + 1;
        }
      } else
        b[j] = b[j] + 1;
    }
    printf("%d\n", j + 1);
    for (i = 0; i <= j; i++) {
      printf("%d", b[i]);
      if (i < j) printf(" ");
    }
    printf("\n");
  }
  return 0;
}
