#include<stdio.h>
void fun()
{
char ch;
int count[10]={0,0,0,0,0,0,0,0,0,0};
int i;
while((ch=getchar())!='\n')
{
switch(ch)
{
case 48:count[0]++;break;
case 49:count[1]++;break;
case 50:count[2]++;break;
case 51:count[3]++;break;
case 52:count[4]++;break;
case 53:count[5]++;break;
case 54:count[6]++;break;
case 55:count[7]++;break;
case 56:count[8]++;break;
case 57:count[9]++;break;
}
}
for(i=0;i<10;i++)
{
if(count[i])
{
printf("%d个%d\n",count[i],i);
}
}
}
int main()
{
fun();
return 0;
}