#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, arr[101] = {0}, cnt = 0, ans = 0, cnt1 = 0, j = 1;
  vector<int> v;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> arr[i];
  }
  for (int i = 1; i <= n; i++) {
    if (arr[i] < 0) cnt++;
    if (cnt == 3) v.push_back(i - j), j = i, cnt = 1, ans++;
    if (i == n) v.push_back(i - j + 1), ans++;
  }
  cout << ans << endl;
  for (int i = 0; i < v.size(); i++) cout << v[i] << " ";
  cout << endl;
}
