func_code_string: #include <bits/stdc++.h>   using namespace std;   const int inf = 2000000000;   const int MOD = 1000000007;   int n, m, k = 0, c = 0, q;   map<int, char> mp;   map<char, int> cnt;   int main() {     string s;     cin >> s;     bool f1 = 0, f2 = 0, f3 = 0, f4 = 0;     for (int i = 0; i < s.length(); i++) {       if (s[i] ==  G ) {         f1 = 1;         mp[i % 4] = s[i];       }       if (s[i] ==  Y ) {         f2 = 1;         mp[i % 4] = s[i];       }       if (s[i] ==  R ) {         f3 = 1;         mp[i % 4] = s[i];       }       if (s[i] ==  B ) {         f4 = 1;         mp[i % 4] = s[i];       }     }     if (!f1) {       for (int i = 0; i < 4; i++) {         if (mp.find(i) == mp.end()) {           mp[i] =  G ;           break;         }       }     }     if (!f2) {       for (int i = 0; i < 4; i++) {         if (mp.find(i) == mp.end()) {           mp[i] =  Y ;           break;         }       }     }     if (!f3) {       for (int i = 0; i < 4; i++) {         if (mp.find(i) == mp.end()) {           mp[i] =  R ;           break;         }       }     }     if (!f4) {       for (int i = 0; i < 4; i++) {         if (mp.find(i) == mp.end()) {           mp[i] =  B ;           break;         }       }     }     string s1 =   ;     for (int i = 0; i < s.length(); i++) {       if (s[i] ==  ! ) {         cnt[mp[i % 4]]++;       }     }     cout << cnt[ R ] <<     << cnt[ B ] <<     << cnt[ Y ] <<     << cnt[ G ];     return 0;   }   