#include<iostream>
#include<string>
#include<cstdio>
using namespace std;
int main(){
string s;cin>>s;
int a[1005]={0};
for(int i=0;i<s.length();i++){
a[s[i]-'0']++;
}
for(int i=0;i<=9;i++){
if(a[i]) cout<<i<<":"<<a[i]<<"\n";
}
return 0;
}