#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
string s;
cin>>s;
unordered_map<char,int> mp;
for(int i=0;i<s.size();i++){
mp[s[i]]++;
}
string ans="";
for(auto x:mp){
ans.push_back(x.first);
ans.push_back(x.second);
}
cout<<ans<<endl;
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCXN0cmluZyBzOwoJY2luPj5zOwoJdW5vcmRlcmVkX21hcDxjaGFyLGludD4gbXA7Cglmb3IoaW50IGk9MDtpPHMuc2l6ZSgpO2krKyl7CgkJbXBbc1tpXV0rKzsKCX0KCXN0cmluZyBhbnM9IiI7Cglmb3IoYXV0byB4Om1wKXsKCQlhbnMucHVzaF9iYWNrKHguZmlyc3QpOwoJCWFucy5wdXNoX2JhY2soeC5zZWNvbmQpOwoJfQoJY291dDw8YW5zPDxlbmRsOwoJcmV0dXJuIDA7Cn0=