func_code_string: #include <bits/stdc++.h>   using namespace std;   const int maxn = 1e5 + 5;   char s[maxn];   int size[maxn], last[200];   bool isover[maxn];   string ans[maxn], now;   int main() {     ios::sync_with_stdio(false);     cin.tie(0), cout.tie(0);     cin >> s;     int len = strlen(s);     bool hasdel = false;     now =   ;     for (int no = len - 1; ~no; no--) {       now = s[no] + now;       if (now.size() > 1) {         if (now[0] != now[1]) last[now[0]] = now[1];       }       if (now.size() > 1 && !hasdel) {         if (now[0] == now[1] && now[1] > last[now[1]]) {           now = now.substr(2);           hasdel = true;         }       } else         hasdel = false;       size[no] = now.size();       if (now.size() > 10)         ans[no] = now.substr(0, 5) +  ...  + now.substr(now.size() - 2);       else         ans[no] = now;     }     for (int i = 0; i < len; i++) {       cout << size[i] <<     << ans[i] <<   n ;     }   }   