#include <bits/stdc++.h>
using namespace std;
int a[110];
int main() {
  int m, i, j, k, t, n;
  while (~scanf("%d", &n)) {
    for (i = 0; i < n; i++) scanf("%d", &a[i]);
    k = 0;
    j = 0;
    int num = n;
    vector<int> v;
    for (i = 0; i < n; i++) {
      if (a[i] >= 0) continue;
      k++;
      if (k == 3) {
        v.push_back(i - j);
        num -= (i - j);
        j = i;
        k = 1;
      }
    }
    if (num) {
      v.push_back(num);
    }
    printf("%d\n", v.size());
    for (i = 0; i < v.size(); i++) printf("%d \n", v[i]);
    puts("");
  }
  return 0;
}
