#include <stdio.h>
#include <math.h>
#include <string.h>
int main()
{
char a[1000];
int b[100];
int n;
for(n = 0;n<100;n++)
{
b[n] = 0;
}
scanf("%s",&a);
int i;
for(i = 0;i<strlen(a);i++)
{
switch(a[i])
{
case '0':b[0]++;break;
case '1':b[1]++;break;
case '2':b[2]++;break;
case '3':b[3]++;break;
case '4':b[4]++;break;
case '5':b[5]++;break;
case '6':b[6]++;break;
case '7':b[7]++;break;
case '8':b[8]++;break;
case '9':b[9]++;break;
}
}
int m;
for(m = 0;m<10;m++)
{
if(b[m]!=0)
{
printf("%d:%d",m,b[m]);
printf("\n");
}
}
}