func_code_string: #include <bits/stdc++.h>   const int maxn = 100010;   char s[maxn];   int main() {     int a = 0, b = 0, c = 0, i;     scanf( %s , s);     int len = strlen(s);     if (s[0] ==  )  || s[len - 1] ==  (  || s[0] ==  # ) {       printf( -1 n );       return 0;     }     for (i = len - 1; i >= 0; i--) {       if (s[i] ==  ( ) a++;       if (s[i] ==  ) ) b++;       if (a > b) {         printf( -1 n );         return 0;       }       if (s[i] ==  # ) break;     }     a = 0, b = 0;     for (i = 0; i < len; i++) {       if (s[i] ==  ( ) a++;       if (s[i] ==  ) ) {         if (s[i - 1] ==  ( ) {           s[i - 1] =  . ;           s[i] =  . ;           b--;           a--;         }         b++;       }       if (s[i] ==  # ) {         b++;         c++;       }       if (b > a) {         printf( -1 n );         return 0;       }     }     b -= c;     if (a - b < c) {       printf( -1 n );       return 0;     }     a = 0;     for (i = 0; i < len; i++) {       if (s[i] ==  ( ) a++;       if (s[i] ==  ) ) {         b--;         a--;       }       if (s[i] ==  # ) {         if (c > 1) {           printf( 1 n );           a--;           c--;         } else           printf( %d n , a - b);       }     }     return 0;   }   