map
#include <iostream>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <algorithm>
#include <stack>
#include <map>
#include <set>
#include <queue>
using namespace std;
map <char,int>x;
int n;
char m;
string s;
int main(){
cin>>s;
for(int i=0;i<s.size();i++){
x[s[i]]++;
}
for(map<char,int>::iterator it=x.begin();it!=x.end();it++){
cout<<it->first<<it->second;
}
return 0;
}