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