func_code_string: #include <bits/stdc++.h>   using namespace std;   int n;   string s;   int main() {     cin >> n;     cin >> s;     for (int i = 0; i < n; ++i) {       int c1 = 0, c2 = 0;       for (int j = i - 1; j >= 0; --j) {         if (s[j] ==  L ) {           break;         }         if (s[j] ==  R ) {           ++c1;         }       }       for (int j = i; j < n - 1; ++j) {         if (s[j] ==  R ) {           break;         }         if (s[j] ==  L ) {           ++c2;         }       }       cout << max(c1, c2) + 1 <<    ;     }     cout << endl;     return 0;   }   