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