#include<bits/stdc++.h>
using namespace std;
string s;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin>>s;
for(int i=0;i<s.size();){
int ans=1;
int j=i+1;
while(s[j]==s[i]){
ans++;
j++;
}
cout<<s[i]<<ans;
i=j;
}
}
0 回复
0 转发
0 喜欢
0 阅读



