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