#include <bits/stdc++.h>
using namespace std;
int t[105];
bool p[105];
int main() {
  int n;
  while (scanf("%d", &n) == 1) {
    for (int i = 0; i < n; i++) cin >> t[i];
    int ct = 0;
    for (int i = 0; i < n; i++) {
      if (t[i] < 0) {
        if (ct + 1 == 3) {
          p[i - 1] = 1;
          ct = 1;
        } else
          ct++;
      }
    }
    int last = -1;
    vector<int> ans;
    for (int i = 0; i < n; i++)
      if (p[i]) {
        ans.push_back(i - last);
        last = i;
      }
    ans.push_back(n - 1 - last);
    cout << ans.size() << endl;
    for (int i = 0; i < ans.size(); i++) {
      if (i == 0)
        printf("%d", ans[i]);
      else
        printf(" %d", ans[i]);
    }
  }
}
