func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     string s;     char ch[6] =  aaaaa ;     int ara[4] = {0};     cin >> s;     map<char, int> ms, ms2;     for (int i = 0; i < s.size(); i += 4) {       for (int j = 0; j < 4 && (i + j) < s.size(); j++) {         if (s[i + j] ==  ! ) {           ara[j]++;         } else {           ch[j] = s[i + j];           if (!ms2[ch[j]]) ms2[ch[j]] = j;         }       }     }     int sz = s.size();     for (int i = 0; i < 4; i++) {       if (ch[i] ==  a ) {         if (!ms2[ R ]) {           ch[i] =  R ;           ms2[ R ] = 1;         } else if (!ms2[ G ]) {           ch[i] =  G ;           ms2[ G ] = 1;         } else if (!ms2[ B ]) {           ch[i] =  B ;           ms2[ B ] = 1;         } else if (!ms2[ Y ]) {           ch[i] =  Y ;           ms2[ Y ] = 1;         }       }       ms[ch[i]] = ara[i];     }     cout << ms[ R ] <<     << ms[ B ] <<     << ms[ Y ] <<     << ms[ G ];     return 0;   }   