func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     string str;     cin >> str;     int len = str.length();     int mx = 0;     for (int j = 0; j < len; j++) {       char ch = str[j];       str[j] =  V ;       int ans = 0;       bool flag = false;       for (int i = 0; i < len; i++) {         if (str[i] ==  V )           flag = true;         else {           if (str[i] ==  K  && flag) {             ans++;             flag = false;           } else             flag = false;         }       }       str[j] = ch;       mx = max(ans, mx);     }     for (int j = 0; j < len; j++) {       char ch = str[j];       str[j] =  K ;       int ans = 0;       bool flag = false;       for (int i = 0; i < len; i++) {         if (str[i] ==  V )           flag = true;         else {           if (str[i] ==  K  && flag) {             ans++;             flag = false;           } else             flag = false;         }       }       str[j] = ch;       mx = max(ans, mx);     }     cout << mx;     return 0;   }   