import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner in=new Scanner(System.in);
int a[]=new int[26];
while(in.hasNext())
{
String n=in.next();
for(int i=0;i<n.length();i++)
{
char x=n.charAt(i);
a[x-'0']++;
}
for(int i=0;i<a.length;i++)
{
if(a[i]!=0)
{
System.out.println(i+":"+a[i]);
}
}
}
}
}