func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     string s;     cin >> s;     int n = s.length();     for (int i = 1; i < n - 1; i++)       if (s[i] == s[i - 1] && s[i] == s[i + 1]) {         if (s[i] ==  a )           s[i] =  b ;         else           s[i] =  a ;       }     for (int i = 1; i < n; i++)       if (s[i] == s[i - 1]) {         if (s[i] ==  a ) {           if (i != n - 1 && s[i + 1] !=  b )             s[i] =  b ;           else             s[i] =  c ;         } else if (s[i + 1] !=  a )           s[i] =  a ;         else if (s[i] !=  b )           s[i] =  b ;         else           s[i] =  c ;       }     cout << s;   }   