// 正确代码
#include <bits/stdc++.h>
using namespace std;
int main() {
string n;
map<char, int> cnt;
cin >> n;
// 对每个数字统计
for(int i = 0; i < n.size(); i++)
cnt[n[i]]++;
for(auto D : cnt)
cout << D.first << ":" << D.second << endl;
}
// 最后一个点不对 long long 果然不能满足1000位
#include <bits/stdc++.h>
using namespace std;
int main() {
long long N, num;
map<int, int> cnt;
cin >> N;
do{
cnt[N % 10]++;
}while(N /= 10);
for (auto it : cnt)
cout << it.first << ":" << it.second << endl;
}