#include <bits/stdc++.h>
using namespace std;
int n, i = 1, s, a[105], c;
int main() {
  for (cin >> n; i <= n; i++) cin >> a[i], s += (a[i] < 0 ? 1 : 0);
  cout << max(1, (s + 1) / 2) << endl;
  s = 0;
  for (i = 1; i <= n; i++) {
    if (a[i] < 0) c++;
    s++;
    if (c > 2) cout << s - 1 << " ", s = 1, c = 1;
  }
  cout << s;
}
