#include <bits/stdc++.h>
using namespace std;
int n, a[101], k, neg, tot;
vector<int> v;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (int i = 0; i < n; i++) {
    if (a[i] < 0) {
      neg++;
    }
    if (neg == 3) {
      k++;
      v.push_back(tot);
      tot = 0;
      neg = 1;
    }
    tot++;
  }
  k++;
  v.push_back(tot);
  cout << k << endl;
  for (int i = 0; i < k; i++) {
    cout << v[i] << " ";
  }
  cout << endl;
  return 0;
}
