#include <iostream>
#include <string>
#include <algorithm>
#include<stdlib.h>
#include<math.h>
using namespace std;
int main()
{
int j;
string s;
cin>>s;
int nn[10]={0};
for(int i=0;i<s.length();i++)
{
int n=s[i]-'0';
for( j=0;j<10;j++)
{
if(n==j)
nn[j]++;
}
}
for( j=0;j<10;j++)
{
if(nn[j]!=0)
cout<<j<<":"<<nn[j]<<endl;
}
return 0;
}