func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     ios_base::sync_with_stdio(false);     cin.tie(NULL);     long long int n;     cin >> n;     string s1;     cin >> s1;     vector<pair<char, int> > v;     long long int sz = s1.size();     long long int j = 0;     while (j < sz) {       char ch = s1[j];       if (v.empty() || v.back().first != ch)         v.push_back({ch, 1});       else         v.back().second++;       j++;     }     long long int ans;     if (v.front().second > 1) {       ans = v.front().second - 1;     } else       ans = 1;     string s2 =   ;     s2 += v.front().first;     long long int f = 0;     for (long long int i = 1; i < v.size(); i++) {       if (f) {         s2 += v[i].first;         f = 0;       } else {         if (v[i].second == 1) {           s2 += v[i].first;           f = 1;         } else {           s2 += v[i].first;           s2 += v[i].first;         }       }     }     long long int sz2 = s2.size();     if (sz2 == 0 || sz2 % 2 == 0) {       cout << n - sz2 << endl;       cout << s2 << endl;     } else {       cout << n - sz2 + 1 << endl;       s2[sz2 - 1] =   0 ;       long long int j = 0;       while (j < sz2 - 1) {         cout << s2[j];         j++;       }     }     return 0;   }   