func_code_string: #include <bits/stdc++.h>   using namespace std;   const int maxn = 1e5 + 5;   const int INF = 0x3f3f3f3f;   int vis[105];   int main() {     string s;     cin >> s;     int len = s.size();     int ans = 0;     for (int i = 0; i < len - 1; i++) {       if (s[i] ==  V  && s[i + 1] ==  K ) ans++;     }     for (int i = 0; i < len; i++) {       char ch = s[i];       s[i] =  V ;       int temp = 0;       for (int j = 0; j < len - 1; j++) {         if (s[j] ==  V  && s[j + 1] ==  K ) temp++;       }       s[i] = ch;       ans = max(ans, temp);     }     for (int i = 0; i < len; i++) {       char ch = s[i];       s[i] =  K ;       int temp = 0;       for (int j = 0; j < len - 1; j++) {         if (s[j] ==  V  && s[j + 1] ==  K ) temp++;       }       s[i] = ch;       ans = max(ans, temp);     }     cout << ans << endl;     return 0;   }   