func_code_string: #include <bits/stdc++.h>   using namespace std;   long long i, j, k, l, n, a, b, ans = 0;   int gcd(int a, int b) {     if (a < b) swap(a, b);     return (b == 0) ? a : gcd(b, a % b);   }   struct st {     int first;     long double second;   };   int main() {     std::ios_base::sync_with_stdio(0);     string s;     cin >> s;     n = s.size();     list<int> left, right;     j = 0;     for (auto i : s) {       if (i ==  l ) {         left.push_front(++j);       } else {         right.push_front(++j);       }     }     reverse(right.begin(), right.end());     for (auto i : right) cout << i <<   n ;     for (auto i : left) cout << i <<   n ;     fflush(stdin);     return 0;   }   