func_code_string: #include <bits/stdc++.h>   using namespace std;   int solve(string &s) {     int len = s.length();     int ret = 0;     for (int i = 0; i < len; ++i) {       if (s[i] ==  V  && i + 1 < len && s[i + 1] ==  K ) {         ++ret;       }     }     return ret;   }   int main() {     string s;     while (cin >> s) {       int ans = solve(s);       int len = s.length();       char c;       for (int i = 0; i < len; ++i) {         c = s[i];         if (s[i] ==  V ) {           s[i] =  K ;         } else {           s[i] =  V ;         }         ans = max(ans, solve(s));         s[i] = c;       }       cout << ans << endl;     }     return 0;   }   