#include<iostream>
#include<cstring>
using namespace std;
int main()
{ int p=0;
char x[1000],y[10]={'0','1','2','3','4','5','6','7','8','9'};
cin>>x;
int n=strlen(x);
for(int k=0;k<10;k++,p=0)
{
for(int w=0;w<n;w++)
{
if(y[k]==x[w]) p++;
}
if(p!=0)
cout<<k<<":"<<p<<endl;
}
}