func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     ios_base::sync_with_stdio(0);     cin.tie(0);     cout.tie(0);     string s;     cin >> s;     queue<int> v1;     deque<int> v2;     for (int i = 0; i < s.size(); i++) {       if (s[i] ==  ( )         v1.push(i);       else {         v2.push_front(i);       }     }     int k = 0;     vector<int> res;     while (!v1.empty() && !v2.empty()) {       if (v1.front() > v2.front()) {         v1.pop();         v2.pop_front();         continue;       }       k += 2;       res.push_back(v2.front());       res.push_back(v1.front());       v1.pop();       v2.pop_front();     }     sort(res.begin(), res.end());     if (k == 0) return cout << 0, 0;     cout << 1 <<   n ;     cout << k <<   n ;     for (auto i : res) cout << i + 1 <<    ;   }   