main(){
int a[ 10],I;
Long x;
scanf("%ld ",& ampx);
for(I = 0; I < = 9; i++)a[I]= 0;
while(x)
{
a[x % 10]++;
x/= 10;
}
for(I = 0; I < = 9; i++) printf("%d:%d\n ",I,a[I]);
Debugging passed, running normally.