func_code_string: #include <bits/stdc++.h>   using namespace std;   int report[105], folder[105];   int main() {     int n;     cin >> n;     int k = 1, am = 0;     for (int i = 1; i <= n; i++) cin >> report[i];     for (int i = 1; i <= n; i++) {       if (report[i] < 0 && am == 2) {         k++;         folder[k]++;         am = 1;       } else {         folder[k]++;         if (report[i] < 0) am++;       }     }     cout << k << endl;     for (int i = 1; i <= k; i++) cout << folder[i] <<    ;     return 0;   }   